void () { if (myBeforeCaretRangeMarker == null || !myBeforeCaretRangeMarker.isValid() || myCaretIndentToRestore == null || myBlankLineIndentPreserved) { return; } int newCaretLineStartOffset = myBeforeCaretRangeMarker.getEndOffset(); myBeforeCaretRangeMarker.dispose(); if (myCaretModel.getVisualPosition().column == myVisualColumnToRestore) { return; } Project project = myEditor.getProject(); if (project == null || PsiDocumentManager.getInstance(project).isDocumentBlockedByPsi(myDocument)) { return; } insertWhiteSpaceIndentIfNeeded(newCaretLineStartOffset); }