void () { alarm.cancelAllRequests(); alarm.addRequest(() -> { if (!myFilterComponent.isShowing()) return; myTreeExpansionMonitor.freeze(); myFilteringPanel.setShortcut(null); final String filter = getFilter(); myActionsTree.filter(filter, myQuickLists); final JTree tree = myActionsTree.getTree(); TreeUtil.expandAll(tree); if (filter == null || filter.length() == 0) { TreeUtil.collapseAll(tree, 0); myTreeExpansionMonitor.restore(); } else { myTreeExpansionMonitor.unfreeze(); } }, 300); }