void (boolean putFocusIntoTree) { onRootsChanged(); updatePropertiesLabel(); myTreeModel.invalidateAsync(); if (putFocusIntoTree) { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myTree, true)); } fireLibraryChanged(); }