void (@NotNull GrMethod method) { PsiClass clazz = method.getContainingClass(); if (clazz == null) return; GrReflectedMethod[] reflectedMethods = method.getReflectedMethods(); if (reflectedMethods.length == 0) { doCheckDuplicateMethod(method, clazz); } else { for (GrReflectedMethod reflectedMethod : reflectedMethods) { doCheckDuplicateMethod(reflectedMethod, clazz); } } }