void (@NotNull Collection<? super PsiStatement> exitStatements, PsiStatement statement, Class<? extends PsiStatement> @NotNull ... classesFilter) { if (statement != null && isElementOfClass(statement, classesFilter)) { exitStatements.add(statement); } }