@Override
    public @NotNull NodeSortOrder getSortOrder(@NotNull NodeSortSettings settings) {
      if (getVirtualFile().isDirectory()) {
        if (settings.isSortByType() && isPackage(getIcon())) return NodeSortOrder.PACKAGE;
        if (settings.isSortByType() || settings.isFoldersAlwaysOnTop()) return NodeSortOrder.FOLDER;
      }
      return super.getSortOrder(settings);
    }
@Override
    public @NotNull NodeSortOrder getSortOrder(@NotNull NodeSortSettings settings)