docs: public static FileInputStream getFileInputStreamPrivileged(final File file) throws FileNotFoundException {
          final AtomicReference<FileNotFoundException> exceptionRef = new AtomicReference<FileNotFoundException>();
          FileInputStream fis = AccessController.doPrivileged(new PrivilegedAction<FileInputStream>() {
              @Override
              public FileInputStream run() {
                  try {
                      return new FileInputStream(file);
                  } catch (FileNotFoundException e) {
                      exceptionRef.set(e);
                      return null;
                  }
              }
          });
  
          if (exceptionRef.get() != null)
              throw exceptionRef.get();
  
          return fis;
      }