public static boolean isWhitespaceOrComment(@NotNull ASTNode element) {
    return element.getPsi() instanceof PsiWhiteSpace || element.getPsi() instanceof PsiComment;
  }
public static boolean isWhitespaceOrComment(@NotNull ASTNode element)