code: public static Year parse(CharSequence text, DateTimeFormatter formatter) {
          Jdk8Methods.requireNonNull(formatter, "formatter");
          return formatter.parse(text, Year.FROM);
      }
docs: Obtains an instance of {@code Year} from a text string using a specific formatter.
  <p>
  The text is parsed using the formatter, returning a year.
  
  @param text  the text to parse, not null
  @param formatter  the formatter to use, not null
  @return the parsed year, not null
  @throws DateTimeParseException if the text cannot be parsed