TreeVisitor (@NotNull ExecutionNode executionNode) { TreePath treePath = TreePathUtil.pathToCustomNode(executionNode, node -> node.getParent()); return new TreeVisitor.ByTreePath<>(treePath, o -> (ExecutionNode)TreeUtil.getUserObject(o)); }