void (@NotNull PsiMethod method) { if (containsSynchronization) { return; } if (method.hasModifierProperty(PsiModifier.SYNCHRONIZED)) { containsSynchronization = true; return; } super.visitMethod(method); }