public static List<String> enumConstantsOf(Column column) {
        final Optional<String> ec = column.getEnumConstants();
        final String[] enumConstants = ec
                .orElseThrow(() -> new NoSuchElementException(
                        "Column '" + column.getId() +
                                "' in table '" + column.getParentOrThrow().getId() +
                                "' was marked as an enum but no enum constants was specified."
                ))
                .split(",");

        return Stream.of(enumConstants)
        .sorted()
        .collect(toList());
    }
Returns a list of all the enum constants in a particular column.
The list is created each time this method is called and is therefore
safe to edit without affecting the column.
<p>
If no enum constants was specified in the column, an exception is
thrown.

@param column  the column to retrieve the constants from
@return        list of the constants
plugin-parent/enum-generator/src/main/java/com/speedment/plugins/enums/internal/EnumGeneratorUtil.java