int (@NotNull VirtualFile file1, @NotNull VirtualFile file2) { if (file1.equals(file2)) return 0; final VirtualFile r1 = getFileRoot(file1); final VirtualFile r2 = getFileRoot(file2); final int i1 = myEntries.getInt(r1); final int i2 = myEntries.getInt(r2); if (i1 == i2) return 0; if (i1 == -1) return -1; if (i2 == -1) return 1; return i2 - i1; }