boolean (@NotNull CatchSectionWrapper s1, @NotNull CatchSectionWrapper s2) { final List<String> comments1 = collectCommentTexts(s1.myCatchSection); final List<String> comments2 = collectCommentTexts(s2.myCatchSection); return comments1.equals(comments2); }