code: public static <T extends MethodDescription> ElementMatcher.Junction<T> definedMethod(ElementMatcher<? super MethodDescription.InDefinedShape> matcher) {
          return new DefinedShapeMatcher<T, MethodDescription.InDefinedShape>(matcher);
      }
docs: Matches a method in its defined shape.
  
  @param matcher The matcher to apply to the matched method's defined shape.
  @param <T>     The matched object's type.
  @return A matcher that matches a matched method's defined shape.