code: public static boolean checkSchema(Set<Schema> output, Set<Schema> input) {
      return findSchema(output, input) != null;
    }
docs: Given two schema's checks if there exists compatibility or equality.
  
  @param output Set of output {@link Schema}.
  @param input  Set of input {@link Schema}.
  @return true if and only if they are equal or compatible with constraints