int (@NotNull FilePath filePath1, @NotNull FilePath filePath2, boolean flattened) { if (flattened) { int delta = FileNameComparator.INSTANCE.compare(filePath1.getName(), filePath2.getName()); if (delta != 0) return delta; } return HierarchicalFilePathComparator.NATURAL.compare(filePath1, filePath2); }