public @Nullable InputStream getInputStream(@NotNull URL url) {
    File cachedResult = myCache.get(url);
    if (cachedResult != null) {
      try {
        return new FileInputStream(cachedResult);
      }
      catch (FileNotFoundException e) {
        LOG.warn("Couldn't open " + cachedResult, e);
      }
    }
    try {
      return shouldCache(url) ? new CachingInputStream(url) : url.openStream();
    }
    catch (IOException e) {
      LOG.debug("Couldn't open " + url, e);
    }
    return null;
  }
public @Nullable InputStream getInputStream(@NotNull URL url)