public static Severity byValue(int value) {
    for (Severity severity : values()) {
      if (severity._value == value) {
        return severity;
      }
    }
    return NONE;
  }
Returns the Severity corresponding to the severity value, NONE severity otherwise

@param value The severity values (0 to 5)
@return The severity
app/com/linkedin/drelephant/analysis/Severity.java