private static Set<File> getSourceFolders(CppComponent component) {
    Set<File> result = new LinkedHashSet<>();
    for (CppBinary binary : component.getBinaries()) {
      CompilationDetails compilationDetails = binary.getCompilationDetails();
      result.addAll(compilationDetails.getHeaderDirs());
      compilationDetails.getSources().forEach(sourceFile -> result.add(sourceFile.getSourceFile().getParentFile()));
    }
    return result;
  }
private static Set<File> getSourceFolders(CppComponent component)