code: @NullSafe
    public static boolean createFile(File path) {
      try {
        return (path != null && !path.isDirectory() && (path.isFile() || path.createNewFile()));
      }
      catch (IOException ignore) {
        return false;
      }
    }
docs: Creates a file with the given {@link File} path.
  
  @param path the given {@link File} indicating the absolute location and name of the file.
  @return true if the path represented by the {@link File} object is not null, is not an existing directory,
  or the path can be created as a file if it does not already exist.  Returns true if the file already exists.
  @see java.io.File#createNewFile()