public Comparator getBugInstanceComparator(String sortOrder) {
private Comparator getBugInstanceComparator(String sortOrder) {
    public Comparator getBugInstanceComparator(String sortOrder) {        if (sortOrder.equals(BY_CLASS))            return bugInstanceByClassComparator;        else if (sortOrder.equals(BY_PACKAGE))            return bugInstanceByPackageComparator;        else if (sortOrder.equals(BY_CATEGORY))            return bugInstanceByCategoryComparator;        else            throw new IllegalArgumentException("Bad sort order: " + sortOrder);    }