code: public static File removeExtension(File file) throws IllegalArgumentException
    {
      Params.notNull(file, "File");
      return new File(removeExtension(file.getPath()));
    }
docs: Remove extension from given file and create a new one with resulting path.
  
  @param file file to remove extension from.
  @return newly created file without extension.
  @throws IllegalArgumentException if <code>file</code> parameter is null.