boolean (@NotNull TransformationContext helper, String name, boolean isSetter) { Collection<PsiMethod> methods = helper.findMethodsByName(name, true); final int paramCount = isSetter ? 1 : 0; for (PsiMethod method : methods) { if (paramCount != method.getParameterList().getParametersCount()) continue; if (helper.getCodeClass().equals(method.getContainingClass())) return true; PsiModifierList modifierList = method.getModifierList(); if (modifierList instanceof GrModifierList && helper.hasModifierProperty((GrModifierList)modifierList, PsiModifier.FINAL)) { return true; } } return false; }