func (p PolicyTypesFilterSpecification) IsSatisfied(r *policy.RegoMetadata) bool {
	if len(r.PolicyType) < 1 || len(p.policyTypes) < 1 {
		return true
	}
	return utils.CheckPolicyType(r.PolicyType, p.policyTypes)
}
IsSatisfied implementation for policy type based Filter spec
package filters
import (
	"strings"
	"github.com/accurics/terrascan/pkg/policy"
	"github.com/accurics/terrascan/pkg/utils"
	"go.uber.org/zap"
)
type PolicyTypesFilterSpecification struct {
	policyTypes []string
}