code: private static boolean isRunnerClass(Class<?> type) {
          return Stream.of(type.getDeclaredFields()).anyMatch(field -> TestRunner.class.isAssignableFrom(field.getType()));
      }
docs: Searches for field of type test runner.
  @param type
  @return