docs: public static boolean hasRegistry(String imageName) {
          if (imageName == null) {
              throw new NullPointerException("Image name must not be null");
          }
  
          Matcher matcher = IMAGE_PATTERN.matcher(imageName);
          if (!matcher.matches()) {
              throw new IllegalArgumentException(imageName + " is not a proper image name ([registry/][repo][:port]");
          }
  
          String rest = matcher.group(1);
          String[] parts = rest.split(SPLIT_REGEX);
          String part = parts[0];
  
          return part.contains(DOT) || part.contains(COLN);
      }