void (MultiMap<PsiElement, @DialogMessage String> conflicts, PsiMethod method, PsiParameter parameter) { PsiClass containingClass = method.getContainingClass(); if (containingClass != null) { int parameterIndex = method.getParameterList().getParameterIndex(parameter); PsiMethod methodCopy = (PsiMethod)method.copy(); methodCopy.getParameterList().getParameters()[parameterIndex].delete(); ConflictsUtil.checkMethodConflicts(containingClass, method, methodCopy, conflicts); } }