List<String> (@NotNull Project project, @NotNull List<? extends Couple<String>> testFqns, byte frameworkId) { String url = INTELLIJ_TEST_DISCOVERY_HOST + "/search/test/details"; return executeQuery(() -> HttpRequests.post(url, "application/json").productNameAsUserAgent().gzip(true).connect( r -> { r.write(testFqns.stream().map(s -> "\"" + s.getFirst() + "." + s.getSecond() + "\"").collect(Collectors.joining(",", "[", "]"))); return Arrays.stream(new ObjectMapper().readValue(r.getInputStream(), TestDetails[].class)) .map(details -> details.files) .filter(Objects::nonNull) .flatMap(Collection::stream) .collect(Collectors.toList()); }), project); }