int (@NotNull final UsageGroup o) { String name; if (o instanceof NamedPresentably) { name = ((NamedPresentably)o).getPresentableName(); } else { name = o.getPresentableGroupText(); } return myName.compareToIgnoreCase(name); }