boolean (@NotNull PsiElement element) { List<PsiComment> comments = getComments(element); boolean isSectionCommentsDetected = false; for (PsiComment comment : comments) { if (mySectionDetector.processComment(comment)) { isSectionCommentsDetected = true; myProcessedSectionsComments.add(comment); } } return isSectionCommentsDetected; }