void () { myRoot.removeAllChildren(); loadScopes(mySharedScopesManager); loadScopes(myLocalScopesManager); loadComponentState(); final List<String> order = getScopesState().myOrder; TreeUtil.sortRecursively(myRoot, (o1, o2) -> { final int idx1 = order.indexOf(o1.getDisplayName()); final int idx2 = order.indexOf(o2.getDisplayName()); return idx1 - idx2; }); if (getScopesState().myOrder.size() != myRoot.getChildCount()) { loadStateOrder(); } super.reset(); }