ScalaForkOptionsImpl (@Nullable ScalaForkOptions forkOptions) { if (forkOptions == null) return null; ScalaForkOptionsImpl result = new ScalaForkOptionsImpl(); result.setJvmArgs(wrapStringList(forkOptions.getJvmArgs())); result.setMemoryInitialSize(forkOptions.getMemoryInitialSize()); result.setMemoryMaximumSize(forkOptions.getMemoryMaximumSize()); return result; }