int (@NotNull VirtualFile file1, @NotNull VirtualFile file2) { final ModuleFileIndex fileIndex = ModuleRootManager.getInstance(myModule).getFileIndex(); return Comparing.compare(fileIndex.getOrderEntryForFile(file2), fileIndex.getOrderEntryForFile(file1)); }