boolean (@NotNull PsiElement element) { if (element instanceof GrMethod method) { if (PsiUtil.OPERATOR_METHOD_NAMES.contains(method.getName())) return true; if (MissingMethodAndPropertyUtil.isPropertyMissing(method)) return true; if (MissingMethodAndPropertyUtil.isMethodMissing(method)) return true; if (isDelegateAnnotated(method)) return true; } else if (element instanceof GrParameter parameter) { final PsiElement scope = parameter.getDeclarationScope(); if (scope instanceof GrMethod && (MissingMethodAndPropertyUtil.isMethodMissing((GrMethod)scope) || MissingMethodAndPropertyUtil .isPropertyMissing((GrMethod)scope))) return true; } return false; }