code: public static Pair<Integer, Integer> parseResolution(@NonNull final Context context,
                                                           @NonNull final String resolution) {
          Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
          Condition.INSTANCE.ensureNotNull(resolution, "The resolution may not be null");
          Condition.INSTANCE.ensureNotEmpty(resolution, "The resolution may not be empty");
          String separator = context.getString(R.string.resolution_preference_separator);
          String[] dimensions = resolution.split(separator);
  
          if (dimensions.length != 2) {
              throw new IllegalArgumentException("Malformed resolution: " + resolution);
          }
  
          try {
              int width = Integer.parseInt(dimensions[0]);
              int height = Integer.parseInt(dimensions[1]);
              return Pair.create(width, height);
          } catch (NumberFormatException e) {
              throw new IllegalArgumentException(
                      "Resolution contains invalid dimension: " + resolution, e);
          }
      }
docs: Parses a specific textual representation of a resolution and returns its dimensions.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param resolution
  The textual representation of the resolution, which should be parsed, as a {@link
  String}. The resolution may neither be null, nor empty
  @return A pair, which contains the width and height of the given resolution, as an instance
  of the class {@link Pair}