public static List <RuleRepositoryDefBase> GetUnusedFields(this RuleApplicationDef ruleAppDef)
        {
            var fields = ruleAppDef.GetAllFields().ToList();

            foreach (var field in ruleAppDef.GetConsumedFields())
            {
                fields.Remove(field.TargetDef);
            }
            foreach (var field in ruleAppDef.GetUpdatedFields())
            {
                fields.Remove(field.TargetDef);
            }

            return(fields);
        }