void (@NotNull InsertionContext context) { super.handleInsert(context); Document document = context.getDocument(); CharSequence docChars = document.getCharsSequence(); int tailOffset = context.getTailOffset(); if (!(tailOffset < document.getTextLength() && docChars.charAt(tailOffset) == '}