int (@NotNull final VirtualFile file1, @NotNull final VirtualFile file2) { final GlobalSearchScope scope = findScopeFor(file1); assert scope != null; if (scope.contains(file2)) return scope.compare(file1, file2); return 0; }