code: public static void setExternalStorageState(File directory, String state) {
      storageState.put(directory.toPath(), state);
    }
docs: Sets the {@link #getExternalStorageState(File)} for given directory.
  
  @param externalStorageState Value to return from {@link #getExternalStorageState(File)}.