void (@NotNull Component component, boolean hovered) { if (component instanceof ReviewCommentComponent) { ((ReviewCommentComponent)component).setState(hovered ? EventHandler.SelectionType.HOVER : EventHandler.SelectionType.NONE); } }