void (@NotNull PsiMethod method) { super.visitMethod(method); if (!CloneUtils.isClone(method)) { return; } if (onlyWarnOnPublicClone && !method.hasModifierProperty(PsiModifier.PUBLIC)) { return; } final PsiClass containingClass = method.getContainingClass(); if (CloneUtils.isCloneable(containingClass) || ControlFlowUtils.methodAlwaysThrowsException(method)) { return; } registerMethodError(method, containingClass); }