@Override
  public @NotNull Result beforeCharTyped(char c,
                                         @NotNull Project project,
                                         @NotNull Editor editor,
                                         @NotNull PsiFile file,
                                         @NotNull FileType fileType) {
    if (!isEnabled(editor)) {
      return Result.CONTINUE;
    }
    if (isInsertSpaceAtCaret(editor, c, project)) {
      EditorModificationUtilEx.insertStringAtCaret(editor, " ");
    }

    return Result.CONTINUE;
  }
@Override
  public @NotNull Result beforeCharTyped(char c,
                                         @NotNull Project project,
                                         @NotNull Editor editor,
                                         @NotNull PsiFile file,
                                         @NotNull FileType fileType)