code: public static <T extends Tree> Enclosing.Method<T> enclosingMethod(Matcher<MethodTree> matcher) {
      return new Enclosing.Method<>(matcher);
    }
docs: Matches an AST node which is enclosed by a method node that matches the given matcher.