docs: @Nullable
    @SafeVarargs
    public final TreePath findPathToEnclosing(Class<? extends Tree>... classes) {
      TreePath enclosingPath = getPath();
      while (enclosingPath != null) {
        for (Class<? extends Tree> clazz : classes) {
          if (clazz.isInstance(enclosingPath.getLeaf())) {
            return enclosingPath;
          }
        }
        enclosingPath = enclosingPath.getParentPath();
      }
      return null;
    }