docs: private void resetFile(String file) {
      File f = new File(file);
      if (f.exists()) {
        JMetalLogger.logger.info("Already existing file " + file);
  
        if (f.isDirectory()) {
          JMetalLogger.logger.info("Deleting directory " + file);
          if (f.delete()) {
            JMetalLogger.logger.info("Directory successfully deleted.");
          } else {
            JMetalLogger.logger.info("Error deleting directory.");
          }
        } else {
          JMetalLogger.logger.info("Deleting file " + file);
          if (f.delete()) {
            JMetalLogger.logger.info("File successfully deleted.");
          } else {
            JMetalLogger.logger.info("Error deleting file.");
          }
        }
      } else {
        JMetalLogger.logger.info("File " + file + " does NOT exist.");
      }
    }