@Override
      public void check(PsiElement element, MultiMap<PsiElement, String> conflicts, String varName) {
        if (!(element instanceof GrVariable var)) return;

        if (var instanceof GrField) return;

        if (var instanceof GrParameter && varName.equals(var.getName())) {
          conflicts.putValue(var, GroovyRefactoringBundle
            .message("introduced.variable.conflicts.with.parameter.0", CommonRefactoringUtil.htmlEmphasize(varName)));
        }
        else if (varName.equals(var.getName())) {
          conflicts.putValue(var, GroovyRefactoringBundle
            .message("introduced.variable.conflicts.with.variable.0", CommonRefactoringUtil.htmlEmphasize(varName)));
        }
      }
@Override
      public void check(PsiElement element, MultiMap<PsiElement, String> conflicts, String varName)