void () { String filter = getFilter(); if (filter != null && filter.length() > 0) { if (!myExpansionMonitor.isFreeze()) { myExpansionMonitor.freeze(); } } IntentionSettingsTree.this.filter(filterModel(filter, true)); TreeUtil.expandAll(myTree); if (filter == null || filter.length() == 0) { TreeUtil.collapseAll(myTree, 0); myExpansionMonitor.restore(); } }