private static void deleteTempFile(@Nullable Path file) {
      try {
        if (file != null) {
          Files.delete(file);
        }
      }
      catch (NoSuchFileException ignore) { }
      catch (IOException e) {
        LOG.warn("Cannot delete temporary file", e);
      }
    }
private static void deleteTempFile(@Nullable Path file)