public void report(@NotNull Path dir, @NotNull Project project) throws IOException, XMLStreamException {
    int[] hashCodes = myDuplicates.keySet().toIntArray();
    //fragments
    try (BufferedWriter fileWriter = Files.newBufferedWriter(dir.resolve("fragments.xml"))) {
      XMLStreamWriter writer = XMLOutputFactory.newDefaultFactory().createXMLStreamWriter(fileWriter);
      writer.writeStartElement("root");
      for (int hash : hashCodes) {
        List<List<PsiFragment>> dupList = myDuplicates.get(hash);
        writer.writeStartElement("hash");
        writer.writeAttribute("val", String.valueOf(hash));
        for (final List<PsiFragment> psiFragments : dupList) {
          writeFragments(psiFragments, writer, project, false);
        }
        writer.writeEndElement();
      }
      writer.writeEndElement(); //root node
      writer.flush();
    }

    writeDuplicates(dir, project, getInfo());
  }
public void report(@NotNull Path dir, @NotNull Project project)