public Result preprocessEnter(@NotNull PsiFile file,
@NotNull Editor editor,
@NotNull Ref<Integer> caretOffset,
@NotNull Ref<Integer> caretAdvance,
@NotNull DataContext dataContext,
<BUG>EditorActionHandler originalHandler) {
String text = editor.getDocument().getText();
if (StringUtil.isEmpty(text)) {</BUG>
return Result.Continue;
}

public Result preprocessEnter(@NotNull PsiFile file,
@NotNull Editor editor,
@NotNull Ref<Integer> caretOffset,
@NotNull Ref<Integer> caretAdvance,
@NotNull DataContext dataContext,
EditorActionHandler originalHandler) {
Document document = editor.getDocument();
Project project = file.getProject();
CaretModel caretModel = editor.getCaretModel();
String text = document.getText();
if (StringUtil.isEmpty(text)) {
return Result.Continue;
}
