code: private SeverityEnumType getSeverity(Severity severity, Severity defaultSeverity) {
          if (severity == null) {
              severity = defaultSeverity;
          }
          return defaultSeverity != null ? SeverityEnumType.fromValue(severity.getValue()) : null;
      }
docs: Converts {@link Severity} to {@link SeverityEnumType}
  
  @param severity
  {@link Severity}, can be <code>null</code>
  @param defaultSeverity
  default severity level, can be <code>null</code>
  @return {@link SeverityEnumType}