void (List<CoverageSuite> suites, DefaultMutableTreeNode parent) { suites.sort((o1, o2) -> o1.getPresentableName().compareToIgnoreCase(o2.getPresentableName())); for (CoverageSuite suite : suites) { CheckedTreeNode treeNode = new CheckedTreeNode(suite); treeNode.setChecked(isSuiteActive(suite)); parent.add(treeNode); } }