public static ItemStack loadPotion(ItemStack potion, String name) {
   if (potion.getType() != Material.POTION) return potion;
   PotionMeta meta = (PotionMeta) potion.getItemMeta();
   meta.clearCustomEffects();
   ConfigurationSection potionYaml = getSection(name);
   if (potionYaml == null) return potion;
   for (String index : potionYaml.getKeys(false)) {
     ConfigurationSection effectYaml = potionYaml.getConfigurationSection(index);
     PotionEffect effect =
         new PotionEffect(
             ItemController.matchPotionEffect(effectYaml.getString("type")),
             effectYaml.getInt("duration", 600),
             effectYaml.getInt("amplifier", 1) - 1,
             effectYaml.getBoolean("showParticles", true));
     meta.addCustomEffect(effect, true);
   }
   if (!meta.getCustomEffects().isEmpty())
     meta.setMainEffect(meta.getCustomEffects().get(0).getType());
   potion.setItemMeta(meta);
   return potion;
 }