code: private boolean matches(MethodDescription target, TypeDefinition typeDefinition) {
          for (MethodDescription methodDescription : typeDefinition.getDeclaredMethods().filter(isVirtual())) {
              if (methodDescription.asSignatureToken().equals(target.asSignatureToken())) {
                  if (matcher.matches(typeDefinition.asGenericType())) {
                      return true;
                  } else {
                      break;
                  }
              }
          }
          return false;
      }
docs: Checks if a type declares a method with the same signature as {@code target}.
  
  @param target         The method to be checked.
  @param typeDefinition The type to check for declaring a method with the same signature as {@code target}.
  @return {@code true} if the supplied type declares a compatible method.