public void copyFrom(@NotNull LookupElementPresentation presentation) {
    myIcon = presentation.myIcon;
    myTypeIcon = presentation.myTypeIcon;
    myItemText = presentation.myItemText;

    List<DecoratedTextRange> thatNameDecoration = presentation.myItemNameDecorations;
    myItemNameDecorations = thatNameDecoration == null ? null : new SmartList<>(thatNameDecoration);

    List<DecoratedTextRange> thatTailDecoration = presentation.myItemTailDecorations;
    myItemTailDecorations = thatTailDecoration == null ? null : new SmartList<>(thatTailDecoration);

    List<TextFragment> thatTail = presentation.myTail;
    myTail = thatTail == null ? null : new SmartList<>(thatTail);

    myTypeText = presentation.myTypeText;
    myStrikeout = presentation.myStrikeout;
    myItemTextBold = presentation.myItemTextBold;
    myItemTextItalic = presentation.myItemTextItalic;
    myTypeGrayed = presentation.myTypeGrayed;
    myTypeIconRightAligned = presentation.myTypeIconRightAligned;
    myItemTextUnderlined = presentation.myItemTextUnderlined;
    myItemTextForeground = presentation.myItemTextForeground;
  }
public void copyFrom(@NotNull LookupElementPresentation presentation)