void (boolean newValue) { if (treeModel instanceof AsyncTreeModel) { // this method must be called on EDT to be consistent with ATM, // because it modifies a list of visible nodes in the layout cache EdtInvocationManager.invokeLaterIfNeeded(() -> super.setRootVisible(newValue)); } else { super.setRootVisible(newValue); } }