Editor (boolean isReadOnly, CharSequence text, @Nullable TemplateContext context) { final Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext()); return createEditor(isReadOnly, createDocument(text, context, project), project); }