void (@NotNull final Editor editor, @NotNull final IElementType lt, @NotNull final IElementType gt, @NotNull final TokenSet invalidInsideReference) { //need custom handler, since brace matcher cannot be used if (!CodeInsightSettings.getInstance().AUTOINSERT_PAIR_BRACKET) return; int offset = editor.getCaretModel().getOffset(); if (computeBracesBalance(editor, offset, lt, gt, invalidInsideReference, true) == 1) { editor.getDocument().insertString(offset, ">"); TabOutScopesTracker.getInstance().registerEmptyScope(editor, offset); } }