code: public static <T extends Node> ImmutableList<T> getAllNodesOfType(
        Node rootSoyNode, final Class<T> classObject) {
      return getAllMatchingNodesOfType(rootSoyNode, classObject, arg -> true);
    }
docs: Retrieves all nodes in a tree that are an instance of a particular class.
  
  @param <T> The type of node to retrieve.
  @param rootSoyNode The parse tree to search.
  @param classObject The class whose instances to search for, including subclasses.
  @return The nodes in the order they appear.