code: public File createFile(File file) throws DataUtilException {
          if(file == null) {
              throw new DataUtilException("File parameter can not be a null value");
          }
  
          try {
              if(! file.createNewFile()) {
                  throw new DataUtilException("Failed to create file. Result of File.createNewFile() was false.");
              }
              trackedFiles.add(file);
          } catch (IOException e) {
              throw new DataUtilException("Failed to create file: " + file.getAbsolutePath(), e);
          }
          return file;
      }
docs: Create a new tracked file
  @param file new file
  @return file new file