Action (@NotNull TreePath path) { SimpleNode node = (SimpleNode)((DefaultMutableTreeNode)path.getLastPathComponent()).getUserObject(); if (!mySelector.shouldSelect(node)) return Action.CONTINUE; selection[0] = node; return Action.INTERRUPT; }