void (@NotNull CodeFloatingToolbar toolbar) { Component component = toolbar.getHintComponent(); if (component == null) return; RelativePoint defaultPosition = new AnchoredPoint(AnchoredPoint.Anchor.BOTTOM, component); ListPopup popup = getOrCreateListPopup(); List<ActionButton> buttons = UIUtil.findComponentsOfType(toolbar.getHintComponent(), ActionButton.class); ActionButton intentionsButton = ContainerUtil.find(buttons, b -> b.getAction() instanceof ShowIntentionActionsAction); if (intentionsButton == null) return; toolbar.attachPopupToButton(intentionsButton, popup); showPopup(defaultPosition); }