void () { if (configurable != myQueuedConfigurable) { return; } Runnable handler = () -> { fireSelected(configurable).processed(promise); }; if (configurable == null) { handler.run(); return; } MyNode editorNode = findNode(configurable); FilteringTreeStructure.FilteringNode editorUiNode = myModel.getTreeStructure().getVisibleNodeFor(editorNode); if (editorUiNode == null) return; myModel.select(editorUiNode, myTree, treePath -> handler.run()); }