void () { String name = getEnteredName(); MultiMap<PsiElement, String> conflicts = new MultiMap<>(); assert name != null; GroovyValidationUtil.validateNewParameterName(firstParam, conflicts, name); if (isClosure) { findClosureConflictUsages(conflicts, occurrences); } if (reportConflicts(conflicts, project)) { performRefactoring(element, owner, occurrences, createNewFirst(), name, specifyTypeExplicitly()); } super.doOKAction(); }