private boolean shouldHide(ErrorTreeElementKind kind) {
    if (!myCanHideWarnings) {
      return false;
    }
    return switch (kind) {
      case WARNING, NOTE -> ErrorTreeViewConfiguration.getInstance(myProject).isHideWarnings();
      case INFO -> ErrorTreeViewConfiguration.getInstance(myProject).isHideInfoMessages();
      default -> false;
    };
  }
private boolean shouldHide(ErrorTreeElementKind kind)