code: private List<File> findXmlReport(String folderPath, List<File> files, String[] includes, String[] excludes) {
          FilesScanner filesScanner = new FilesScanner();
          logger.debug("Trying to find *" + COMPILE_XML + " file under target folder in {}", folderPath);
          String[] directoryContent = filesScanner.getDirectoryContent(folderPath, includes, excludes, false, false);
          for (String filePath : directoryContent) {
              boolean add = true;
              File reportFile = new File(folderPath + fileSeparator + filePath);
              for (File file : files) {
                  if (file.getParent().equals(reportFile.getParent())) {
                      add = false;
                      if (reportFile.getName().length() < file.getName().length()) {
                          files.remove(file);
                          files.add(reportFile);
                          break;
                      }
                  }
              }
              if (add) {
                  files.add(reportFile);
              }
          }
          return files;
      }
docs: /* looking for an xml file ending with '-compile.xml', which should be either in 'target/scala-{version number}/resolution-cache/reports'
  or 'target/scala-{version number}/sbt-{version-number}/resolution-cache/reports'.
  There are some cases where 2 files inside that folder end with '-compile.xml'.  in such case, the way to find the relevant is if its name
  contains the scala-version (which is part of the scala folder name), and that's relevant only if the xml file isn't inside 'sbt-{}' folder.