public static Editor getInjectedEditor(@NotNull Project project, final Editor editor) {
    return getInjectedEditor(project, editor, true);
  }
public static Editor getInjectedEditor(@NotNull Project project, final Editor editor)