String (@Nullable Object node, @Nullable Queryable.PrintInfo printInfo) { if (node instanceof AbstractTreeNode) { return ((AbstractTreeNode<?>) node).toTestString(printInfo); } FilteringTreeStructure.FilteringNode filteringNode = tryCast(node, FilteringTreeStructure.FilteringNode.class); if (filteringNode != null && filteringNode.getDelegate() instanceof AbstractTreeNode) { return ((AbstractTreeNode<?>) filteringNode.getDelegate()).toTestString(printInfo); } if (node == null) { return "NULL"; } return node.toString(); }