void (@NotNull Editor editor, @NotNull LightweightHint hint, int flags, @NotNull HintHint hintInfo) { hint.putUserData(LightweightHint.SHOWN_AT_DEBUG, Boolean.TRUE); myCurrentHint = hint; hint.addHintListener(event -> { LightweightHint source = (LightweightHint)event.getSource(); source.putUserData(LightweightHint.SHOWN_AT_DEBUG, null); if (source == myCurrentHint) myCurrentHint = null; }); }