boolean (@NotNull PsiParameter parameter) { PsiElement scope = parameter.getDeclarationScope(); if (!(scope instanceof GrMethod)) return false; if (((GrMethod)scope).getContainingClass() == null) return false; if (checkAssignmentToFieldExists(parameter)) return false; return true; }