code: private static int getPhaseNumberAsInt(VersionIdentifier version) {
  
      Integer phaseNumberInteger = version.getPhaseNumber();
      if (phaseNumberInteger == null) {
        return 0;
      } else {
        return phaseNumberInteger.intValue();
      }
    }
docs: This method gets {@link #getPhaseNumber()} as {@code int}.
  
  @param version is the {@link VersionIdentifier}.
  @return the {@link #getPhaseNumber()} as {@code int}, using {@code 0} for {@code null}.