public @NotNull Extension createExpandExtension() {
    return Extension.create(AllIcons.General.ExpandComponent,
                            AllIcons.General.ExpandComponentHover,
                            createTooltipText(IdeBundle.message("action.expand"), "ExpandExpandableComponent"),
                            this::expand);
  }
public @NotNull Extension createExpandExtension()