void (PsiPackage aPackage, PsiClass[] classes) { for (PsiClass aClass : classes) { for (PsiMethod method : aClass.getMethods()) { if (method.isPhysical()) { checkMethodAnnotations(method, diffs); } } for (PsiField field : aClass.getFields()) { checkFieldAnnotations(field, diffs); } } }