NodeSortOrder (@NotNull NodeSortSettings settings) { Group group = settings.isSortByType() ? this.group : null; return group == null || null == group.getCommonRootID() ? NodeSortOrder.MODULE_GROUP : NodeSortOrder.MODULE_ROOT; }