docs: @Nullable
    @SuppressWarnings("unchecked") // findPathToEnclosing guarantees that the type is from |classes|
    @SafeVarargs
    public final <T extends Tree> T findEnclosing(Class<? extends T>... classes) {
      TreePath pathToEnclosing = findPathToEnclosing(classes);
      return (pathToEnclosing == null) ? null : (T) pathToEnclosing.getLeaf();
    }