void (boolean sortElements) { mySortElements = sortElements; myStructureTreeModel.setComparator(getComparator()); myArtifactsEditor.getContext().getParent().getDefaultSettings().setSortElements(sortElements); }