private @Nullable Icon tryLoadIcon(@NotNull Path dirFile, boolean light, int width, int height) {
    try {
      Path iconFile = dirFile.resolve(PluginLogoKt.getPluginIconFileName(light));
      return Files.size(iconFile) > 0 ? loadFileIcon(PluginLogo.toURL(iconFile), Files.newInputStream(iconFile), width, height) : null;
    }
    catch (NoSuchFileException ignore) {
      return null;
    }
    catch (IOException e) {
      if (myLogger != null) {
        myLogger.error(e);
      }
      return null;
    }
  }
private @Nullable Icon tryLoadIcon(@NotNull Path dirFile, boolean light, int width, int height)