boolean (@NotNull Set<String> existingComments, @Nullable PsiElement element) { if (element instanceof PsiComment) { String text = TryWithIdenticalCatchesInspection.getCommentText((PsiComment)element); return text.isEmpty() || existingComments.contains(text); } return false; }