private static boolean isWhiteSpaceOrComment(@NotNull PsiElement psiElement) {
    return psiElement instanceof PsiWhiteSpace || PsiTreeUtil.getParentOfType(psiElement, PsiComment.class, false) != null;
  }
private static boolean isWhiteSpaceOrComment(@NotNull PsiElement psiElement)