GrParameter (GrExpression map) { final GrParameter parameter = getParameterByArgument(map); if (parameter == null) return null; final PsiElement parent = parameter.getParent().getParent(); if (!(parent instanceof PsiMethod method)) return null; if (ApplicationManager.getApplication().isUnitTestMode() || Messages.showYesNoDialog( map.getProject(), GroovyBundle.message("do.you.want.to.change.type.of.parameter.in.method", parameter.getName(), method.getName()), GroovyIntentionsBundle.message("convert.map.to.class.intention.name"), Messages.getQuestionIcon() ) == Messages.YES) { return parameter; } return null; }