private static boolean isEndOfLineComment(@Nullable PsiElement element) {
    return element instanceof PsiComment && ((PsiComment)element).getTokenType() == JavaTokenType.END_OF_LINE_COMMENT;
  }
private static boolean isEndOfLineComment(@Nullable PsiElement element)