HighlightInfoComposite (@NotNull List<? extends HighlightInfo> infos) { // derive composite's offsets from an info with tooltip, if present HighlightInfo anchorInfo = ContainerUtil.find(infos, info -> info.getToolTip() != null); if (anchorInfo == null) anchorInfo = infos.get(0); return new HighlightInfoComposite(infos, anchorInfo); }