The search bar is a cool feature which imo deserves its own widget, rather than creating it on the fly in the context of the IDE. It could be its own "class" (constructor). That way, we could also have more than a single one of them, and we could use it in other contexts as well (e.g. when exporting libraries)