private Collection<NodeMatch> matchNodes(QueryPath queryPath, Iterable<FormTree.Node> fields) { if(queryPath.isLeaf()) { return matchTerminal(queryPath, fields); } else { return matchReferenceField(queryPath, fields); } }
return Collections.emptyList(); } else { return matchTerminal(path, children);