public void saveMetrics() { if(inputFile != null) { saveMetrics(inputFile); } else { saveAsMetrics();
private void saveMetrics(File outputFile) { if( outputFile == null ) { return;
  public void saveMetrics() {    if(inputFile != null) {      saveMetrics(inputFile);    } else {      saveAsMetrics();    }  }