public static void handleGenericLTDeletion(@NotNull final Editor editor,
                                             final int offset,
                                             @NotNull final IElementType lt,
                                             @NotNull final IElementType gt,
                                             @NotNull final TokenSet invalidInsideReference) {
    if (computeBracesBalance(editor, offset, lt, gt, invalidInsideReference, true) < 0) {
      editor.getDocument().deleteString(offset, offset + 1);
    }
  }
public static void handleGenericLTDeletion(@NotNull final Editor editor,
                                             final int offset,
                                             @NotNull final IElementType lt,
                                             @NotNull final IElementType gt,
                                             @NotNull final TokenSet invalidInsideReference)