void () { ApplicationManager.getApplication().invokeLater(() -> { XDebuggerTreeState state = myTreeState; InstancesTree tree = getInstancesTree(); if (state == null) { tree.rebuildTree(InstancesTree.RebuildPolicy.RELOAD_INSTANCES); } else { tree.rebuildTree(InstancesTree.RebuildPolicy.RELOAD_INSTANCES, state); } }); }