int (@NotNull UsageGroup o) { if (!(o instanceof UsageGroupBase)) { return -1; } int order = Integer.compare(myOrder, ((UsageGroupBase)o).myOrder); if (order != 0) { return order; } return getPresentableGroupText().compareToIgnoreCase(o.getPresentableGroupText()); }