public @NotNull Extension createCollapseExtension() {
    return Extension.create(AllIcons.General.CollapseComponent,
                            AllIcons.General.CollapseComponentHover,
                            createTooltipText(IdeBundle.message("action.collapse"), "CollapseExpandableComponent"),
                            this::collapse);
  }
public @NotNull Extension createCollapseExtension()