JavaTargetParameter (String agentPath, String sessionDataFilePath, String @Nullable [] patterns, String[] excludePatterns) { HashSet<String> uploadPaths = ContainerUtil.newHashSet(agentPath); HashSet<String> downloadPaths = ContainerUtil.newHashSet(sessionDataFilePath); var builder = new JavaTargetParameter.Builder(uploadPaths, downloadPaths); return doCreateCoverageArgument(builder, patterns, excludePatterns, sessionDataFilePath, agentPath); }