void (@NotNull PsiMethod method) { if (method.hasModifierProperty(PsiModifier.PUBLIC) || !CloneUtils.isClone(method)) { return; } final PsiClass containingClass = method.getContainingClass(); if (!CloneUtils.isCloneable(containingClass)) { return; } registerMethodError(method); }