void (Shortcut shortcut) { boolean wasFreezed = myTreeExpansionMonitor.isFreeze(); if (!wasFreezed) myTreeExpansionMonitor.freeze(); myActionsTree.filterTree(shortcut, myQuickLists); final JTree tree = myActionsTree.getTree(); TreeUtil.expandAll(tree); if (!wasFreezed) myTreeExpansionMonitor.restore(); }