@Override
  public @NotNull Result checkAutoPopup(final char charTyped, final @NotNull Project project, final @NotNull Editor editor, final @NotNull PsiFile file) {
    if (editor.getUserData(REPL_KEY) != null){
      return Result.DEFAULT;
    }
    return Result.CONTINUE;
  }
@Override
  public @NotNull Result checkAutoPopup(final char charTyped, final @NotNull Project project, final @NotNull Editor editor, final @NotNull PsiFile file)