private static PSRuleOption Combine(PSRuleOption o1, PSRuleOption o2) { var result = new PSRuleOption(o1?.SourcePath ?? o2?.SourcePath, o1); result.Configuration = ConfigurationOption.Combine(result.Configuration, o2?.Configuration); result.Output = OutputOption.Combine(result.Output, o2?.Output); return(result); }