I'm wondering if it's possible to change the language of the Editor after it was instantiated? E.g. I create an editor as follows:
EditorFactory.getInstance().createEditor(f.getViewProvider().getDocument(), getProject(), language.getAssociatedFileType(), false)
and the language at that point was XML, how can I change it to JSON without creating a new Editor?