void (final TreePath treePath, final InputEvent e) { Runnable runnable = () -> getNodeFor(treePath).handleDoubleClickOrEnter(this, e); ApplicationManager.getApplication().invokeLater(runnable, ModalityState.stateForComponent(this)); }