List<VirtualFile> (List<? extends VirtualFile> files) { if (files.isEmpty()) return Collections.emptyList(); MergeProvider provider = null; for (VirtualFile virtualFile : files) { final AbstractVcs vcs = ProjectLevelVcsManager.getInstance(myProject).getVcsFor(virtualFile); if (vcs != null) { provider = vcs.getMergeProvider(); if (provider != null) break; } } if (provider == null) return Collections.emptyList(); return showMergeDialog(files, provider); }