code: private void formatFile(File file, ResultCollector rc, Properties hashCache, String basedirPath)
              throws MojoFailureException, MojoExecutionException {
          try {
              doFormatFile(file, rc, hashCache, basedirPath, false);
          } catch (IOException | MalformedTreeException | BadLocationException e) {
              rc.failCount++;
              getLog().warn(e);
          }
      }
docs: Format file.
  
  @param file
  the file
  @param rc
  the rc
  @param hashCache
  the hash cache
  @param basedirPath
  the basedir path