code: public static boolean canReadAndWriteFile (@Nullable final Path aFile)
    {
      if (aFile == null)
        return false;
  
      // The Files API seem to be slow
      return FileHelper.canReadAndWriteFile (aFile.toFile ());
  
      // if (Files.isRegularFile (aFile))
      // {
      // // Path exists
      // if (!Files.isReadable (aFile) || !Files.isWritable (aFile))
      // return false;
      // }
      // else
      // {
      // // Path does not exist (yet)
      // // Check parent directory
      // final Path aParentDir = aFile.getParent ();
      // if (aParentDir == null ||
      // !Files.isDirectory (aParentDir) ||
      // !Files.isReadable (aParentDir) ||
      // !Files.isWritable (aParentDir))
      // return false;
      // }
      // return true;
    }
docs: Check if the passed file can read and write. If the file already exists,
  the file itself is checked. If the file does not exist, the parent
  directory
  
  @param aFile
  The file to be checked. May be <code>null</code>.
  @return <code>true</code> if the file can be read and written