WorkingCopyFormat (@NotNull Version version) { return version.compareTo(ONE_DOT_NINE_VERSION) >= 0 ? ONE_DOT_EIGHT : Stream.of(values()) .filter(format -> format.getVersion().is(version.major, version.minor)) .findFirst() .orElse(UNKNOWN); }