boolean (final @NotNull VirtualFile virtualFile) { int count = 0; for (Project project : ProjectManager.getInstance().getOpenProjects()) { if (PsiManagerEx.getInstanceEx(project).getFileManager().findCachedViewProvider(virtualFile) != null) { count++; } } return count > 1; }