boolean (@Nullable Project project, @NotNull Collection<String> mavenCoords) { if (project == null || project.isDisposed()) return false; if (project.isDefault()) return false; // EA-396106 Libraries libraries = getProjectLibraries(project); for (String coord : mavenCoords) { if (libraries.contains(coord)) return true; } return false; }