private @Nullable Image loadImageFromUrl() {
    Image image = ImageLoader.loadFromUrl(myImageUrl);
    if (image != null &&
        image.getWidth(null) > 0 &&
        image.getHeight(null) > 0) {
      return image;
    }
    try {
      BufferedImage direct = ImageIO.read(myImageUrl);
      if (direct != null) {
        return ImageUtil.ensureHiDPI(direct, ScaleContext.create(myReferenceComponent));
      }
    }
    catch (IOException e) {
      //ignore
    }
    return image;
  }
private @Nullable Image loadImageFromUrl()