void (@NotNull Inlay<?> inlay, int changeFlags) { if ((changeFlags & InlayModel.ChangeFlags.HEIGHT_CHANGED) != 0 && inlay.getRenderer() instanceof MyRenderer) { JComponent component = (JComponent)inlay.getRenderer(); // This method can be called while validating the same component. Prevent resetting parent validation flags. if (component.isValid()) { component.revalidate(); } } }