class CyclicValidationCheck {

    static boolean hasCyclicReferences(final Map<String, ? extends OasSchema> schemaDefinitions) {
        if (schemaDefinitions.isEmpty()) {
            return false;
        }

        final Map<String, Set<String>> references = collectReferences(schemaDefinitions);

        return isCyclic(references);
    }

    private  CyclicValidationCheck();

}