private static boolean isInsideLiteral(@NotNull Editor editor, @NotNull QuoteHandler quoteHandler, int offset){
    if (offset == 0) return false;

    HighlighterIterator iterator = createIteratorAndCheckNotAtEnd(editor, offset - 1);
    if (iterator == null){
      return false;
    }

    return quoteHandler.isInsideLiteral(iterator);
  }
private static boolean isInsideLiteral(@NotNull Editor editor, @NotNull QuoteHandler quoteHandler, int offset)