Result (@NotNull final PsiFile file, @NotNull final Editor editor, @NotNull final Ref<Integer> caretOffsetRef, final @NotNull Ref<Integer> caretAdvance, @NotNull final DataContext dataContext, final EditorActionHandler originalHandler) { if (file instanceof PropertiesFile) { int caretOffset = caretOffsetRef.get().intValue(); Document document = editor.getDocument(); PsiDocumentManager.getInstance(file.getProject()).commitDocument(document); PsiElement psiAtOffset = file.findElementAt(caretOffset); handleEnterInPropertiesFile(editor, document, psiAtOffset, caretOffset); return Result.Stop; } return Result.Continue; }