boolean (@NotNull String url, @NotNull OrderRootType orderRootType) { final Collection<LightFilePointer> pointers = myRoots.get(orderRootType); for (LightFilePointer pointer : pointers) { if (pointer.getUrl().equals(url)) { return pointer.isValid(); } } return false; }