fix broken commit after reverting changes
introduce buildParameterFilterWidgets method to reduce cyclomatic complexitity