List<String> (@NotNull Project project, @NotNull String testClassName, byte frameworkId) { String url = INTELLIJ_TEST_DISCOVERY_HOST + "/search/files/affected/by-test-classes"; return executeQuery(() -> HttpRequests.post(url, "application/json").productNameAsUserAgent().gzip(true).connect( r -> { r.write("[\"" + testClassName + "\"]"); Map<String, List<String>> map = new ObjectMapper().readValue(r.getInputStream(), new TypeReference<>() { }); return ObjectUtils.notNull(ContainerUtil.getFirstItem(map.values()), Collections.emptyList()); }), project); }