code: public static <T extends ByteCodeElement> ElementMatcher.Junction<T> isDeclaredBy(ElementMatcher<? super TypeDescription> matcher) {
          return isDeclaredByGeneric(erasure(matcher));
      }
docs: Matches a {@link ByteCodeElement} for being declared by a {@link TypeDescription} that is matched by the given matcher. This matcher matches
  a declared element's raw declaring type.
  
  @param matcher A matcher for the declaring type of the matched byte code element as long as it
  is not {@code null}.
  @param <T>     The type of the matched object.
  @return A matcher for byte code elements being declared by a type matched by the given {@code matcher}.