class ListImageStreams {

  private static final Logger logger = LoggerFactory.getLogger(ListImageStreams.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}

}

    try (OpenShiftClient client = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class)) {
      if (!client.supportsOpenShiftAPIGroup(OpenShiftAPIGroups.IMAGE)) {
        logger.warn("This cluster does not support the API Group {}", OpenShiftAPIGroups.IMAGE);
        return;
      }
      ImageStreamList list = client.imageStreams().list();
      if (list == null) {
        logger.error("No list returned!");
        return;
      }
      List<ImageStream> items = list.getItems();
      for (ImageStream item : items) {
        logger.info("ImageStream {} has version: {}", item.getMetadata().getName(), item.getApiVersion());
      }
      logger.info("Found {}  ImageStream(s)", items.size());
    } catch (KubernetesClientException e) {
      logger.error("Failed: {}", e.getMessage(), e);
    }
  
<no_super_class>