[TASK] Fix CGL violations in function createSidebar()