code: private Map<String, ScoreComponentSettings> generateWidgetSettings(ScoreCriteriaSettings scoreCriteriaSettings) {
      Map<String, ScoreComponentSettings> scoreParamSettingsMap = new HashMap<>();
  
      addSettingsToMap(
        scoreParamSettingsMap,
        Constants.WIDGET_BUILD,
        getSettingsIfEnabled(
          scoreCriteriaSettings.getBuild()
        ));
  
      addSettingsToMap(
        scoreParamSettingsMap,
        Constants.WIDGET_DEPLOY,
        getSettingsIfEnabled(
          scoreCriteriaSettings.getDeploy()
        ));
  
      addSettingsToMap(
        scoreParamSettingsMap,
        Constants.WIDGET_CODE_ANALYSIS,
        getSettingsIfEnabled(
          scoreCriteriaSettings.getQuality()
        ));
  
      addSettingsToMap(
        scoreParamSettingsMap,
        Constants.WIDGET_GITHUB_SCM,
        getSettingsIfEnabled(
          scoreCriteriaSettings.getScm()
        ));
  
      return scoreParamSettingsMap;
    }
docs: Generate criteria settings for each widget type
  
  @param scoreCriteriaSettings Score Criteria Settings
  @return Map of settings by each widget name