private Path convertToNioFileAndCheck(VirtualFile file, boolean assertSlowOp) throws NoSuchFileException {
    if (assertSlowOp) { // remove condition when writes are moved to BGT
      SlowOperations.assertSlowOperationsAreAllowed();
    }
    if (SystemInfo.isUnix && file.is(VFileProperty.SPECIAL)) { // avoid opening FIFO files
      throw new NoSuchFileException(file.getPath(), null, "Not a file");
    }
    var path = getNioPath(file);
    if (path == null) throw new NoSuchFileException(file.getPath());
    return path;
  }
private Path convertToNioFileAndCheck(VirtualFile file, boolean assertSlowOp)