@Override
  public @NotNull Editor getEditor() {
    DocumentWindow documentWindow = getInjectedDocument(project, editor, editor.getCaretModel().getOffset());
    if (documentWindow != null) {
      PsiFile injectedFile = PsiDocumentManager.getInstance(project).getPsiFile(documentWindow);
      return InjectedLanguageUtil.getInjectedEditorForInjectedFile(editor, injectedFile);
    }
    return editor;
  }
@Override
  public @NotNull Editor getEditor()