refactor LanguageToolEvent.java to use an Enum for the event type value.