JavaTargetParameter (@NotNull JavaTargetParameter.Builder builder, String @Nullable [] patterns, String[] excludePatterns, String sessionDataFilePath, String agentPath) { builder .fixed("-javaagent:") .resolved(agentPath) .fixed("=destfile=") .resolved(sessionDataFilePath) .fixed(",append=false"); if (!ArrayUtil.isEmpty(patterns)) { builder.fixed(",includes=").fixed(StringUtil.join(patterns, ":")); } if (!ArrayUtil.isEmpty(excludePatterns)) { builder.fixed(",excludes=").fixed(StringUtil.join(excludePatterns, ":")); } return builder.build(); }