void (@NotNull PsiMethod psiMethod) { List<Pair<PsiField, PsiMethod>> fieldsAndMethods = new ArrayList<>(); if (!processMethod(psiMethod, fieldsAndMethods, fieldsAndMethods)) return; if (!fieldsAndMethods.isEmpty()) { final Pair<PsiField, PsiMethod> psiFieldPsiMethodPair = fieldsAndMethods.get(0); warnOrFix(psiFieldPsiMethodPair.getFirst(), psiFieldPsiMethodPair.getSecond()); } }