void (final Project project, final Collection<? extends PsiElement> scopes, final UsageInfo[] usages, final PsiElement target, final MultiMap<PsiElement,String> conflicts) { if (scopes == null) return; final VirtualFile vFile = PsiUtilCore.getVirtualFile(target); if (vFile == null) return; List<GroovyPsiElement> groovyScopes = ContainerUtil.collect(scopes.iterator(), new FilteringIterator.InstanceOf<>(GroovyPsiElement.class)); analyzeModuleConflicts(project, groovyScopes, usages, vFile, conflicts); scopes.removeAll(groovyScopes); RefactoringConflictsUtil.getInstance().analyzeModuleConflicts(project, scopes, usages, vFile, conflicts); }