private static List<Graph.OptOut> getAllOptOuts(final Class<?> clazz) {
        // we typically get a null class if this is called recursively and the original clazz was an interface
        if (clazz == Object.class || null == clazz)
            return Collections.emptyList();

        return Stream.concat(getAllOptOuts(clazz.getSuperclass()).stream(),
                Stream.of(clazz.getAnnotationsByType(Graph.OptOut.class))).distinct().collect(Collectors.toList());

    }
Constructs a Gremlin Test Suite implementation.

@param klass               Required for JUnit Suite construction
@param builder             Required for JUnit Suite construction
@param testsToExecute      The list of tests to execute
@param testsToEnforce      The list of tests to "enforce" such that a check is made to ensure that in this list,
                           there exists an implementation in the testsToExecute (use {@code null} for no
                           enforcement).
@param gremlinFlavorSuite  Ignore validation of {@link Graph.OptIn} annotations which is typically reserved for structure tests
@param traversalEngineType The {@link TraversalEngine.Type} to enforce on this suite
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/AbstractGremlinSuite.java