I have a rule which instantiates a hunspell dictionary. I’m trying to figure out a good way to close the underlying dictionary (it is Closeable) (how to cleanup a rule). In my environment, I’m recreating the JLanguageTool instance and rule when the detected language changes, I’m considering just adding a close method to the rule. Wonder if there’s a precedent for this sort of thing.