boolean (GrIntroduceDialog dialog) { final GrIntroduceSettings settings = dialog.getSettings(); if (settings == null) return false; String varName = settings.getName(); boolean allOccurrences = settings.replaceAllOccurrences(); final MultiMap<PsiElement, String> conflicts = isOKImpl(varName, allOccurrences); return conflicts.size() <= 0 || reportConflicts(conflicts, getProject()); }