void (List<Usage> allUsages, @NotNull Project project) { List<FoundUsage> foundUsages = ContainerUtil.map(allUsages, usage -> convertToFoundUsage(project, usage)); Path jsonPath = getFoundUsagesJsonPath(); if (jsonPath != null) { dumpFoundUsagesToFile(foundUsages, jsonPath); } }