boolean (GrParameterListOwner owner) { final GrParameter[] parameters = owner.getParameters(); if (parameters.length != 1) return true; final GrParameter parameter = parameters[0]; final PsiType type = parameter.getTypeGroovy(); if (!(type instanceof PsiClassType)) return true; final PsiClass psiClass = ((PsiClassType)type).resolve(); return psiClass == null || !CommonClassNames.JAVA_UTIL_MAP.equals(psiClass.getQualifiedName()); }