public static BackpackConfiguration getBackpackConfigurationFrom(ItemStack itemStack) {
        if (!isBackpack(itemStack))
            return null;

        BackpackData data = BackpackData.read(itemStack);
        BackpackConfiguration configuration = BackpacksPlugin.getInstance().getBackpackRegistry().getBackPackTypeFromName(data.getType());

        if (configuration == null)
            throw new IllegalArgumentException("ItemStack: " + itemStack + " does not have a valid type! (type: '" + data.getType() + "')");

        return configuration;
    }