private static boolean isWhitespaceOrComment(@Nullable PsiElement originalElement) {
    return originalElement instanceof PsiWhiteSpace || originalElement instanceof PsiComment;
  }
private static boolean isWhitespaceOrComment(@Nullable PsiElement originalElement)