private static bool IsPluginCompatible(PluginImporter pluginImporter, string buildTargetName, string[] defines)
        {
            var defineConstraints        = pluginImporter.DefineConstraints;
            var isCompatibleWithPlatform = pluginImporter.GetCompatibleWithPlatformOrAnyPlatformBuildTarget(buildTargetName);

            return(isCompatibleWithPlatform &&
                   DefineConstraintsHelper.IsDefineConstraintsCompatible(defines, defineConstraints));
        }