List<String> (ModuleChunk chunk, String args, String rawVmOptions) { List<String> params = ParametersListUtil.parse(args); List<String> vmOptions = new ArrayList<>(ParametersListUtil.parse(rawVmOptions)); for (Iterator<String> iterator = params.iterator(); iterator.hasNext(); ) { String option = iterator.next(); if ("-javaAgentClass".equals(option)) { String agentClass = iterator.next(); vmOptions.add("-javaagent:" + locateAgentJar(chunk, agentClass)); } } return vmOptions; }