protected static function removeResourcesNotIncluded(array &$mappings, $parentType, array $inArrayValue)
    {
        foreach ($inArrayValue as $position => $includeValue) {
            if (self::isDeleteableIncludedResource($mappings, $parentType, $includeValue)) {
                unset($inArrayValue[$position]);
            }
        }

        return $inArrayValue;
    }