@Override
  public void executeWriteAction(final @NotNull Editor editor, final Caret caret, final DataContext dataContext) {
    final Project project = CommonDataKeys.PROJECT.getData(dataContext);
    if (project != null && !project.isDefault()) {
      PostprocessReformattingAspect.getInstance(project).disablePostprocessFormattingInside(
        () -> executeWriteActionInner(editor, caret, getExtendedContext(dataContext, project, caret), project));
    }
    else {
      executeWriteActionInner(editor, caret, dataContext, project);
    }
  }
@Override
  public void executeWriteAction(final @NotNull Editor editor, final Caret caret, final DataContext dataContext)