static Collection<String> getMandatoryJvmOptions(int javaMajorVersion){
          return Arrays.stream(MANDATORY_JVM_OPTIONS)
                  .map(option -> jvmOptionFromLine(javaMajorVersion, option))
                  .flatMap(Optional::stream)
                  .collect(Collectors.toUnmodifiableList());
    }
@Test
    public void testAlwaysMandatoryJvmPresent() {
        assertTrue("Contains regexp interruptible for Java 11",
                JvmOptionsParser.getMandatoryJvmOptions(11).contains("-Djruby.regexp.interruptible=true"));
        assertTrue("Contains regexp interruptible for Java 17",
                JvmOptionsParser.getMandatoryJvmOptions(17).contains("-Djruby.regexp.interruptible=true"));

    }