class UnifiedDataShapeGenerator implements DataShapeGenerator<Oas20Document, Oas20Operation> {

    static boolean supports(final String mime, final List<String> defaultMimes, final List<String> mimes) {
        boolean supports = false;
        if (mimes != null && !mimes.isEmpty()) {
            supports = mimes.contains(mime);
        }

        if (defaultMimes != null && !defaultMimes.isEmpty()) {
            supports |= defaultMimes.contains(mime);
        }

        return supports;
    }

}