class SeverityAxisGenerator implements AxisGenerator {

    @Override
    public Stream<AxisPointDTO> getPoints(long projectId) {
        return Arrays.stream(FunctionalitySeverity.values())
                .sorted(Collections.reverseOrder()) // From the highest severity to the lowest one
                .map(severity -> new AxisPointDTO(severity.name(), StringUtils.capitalize(severity.name().toLowerCase()), null));
    }

}