The output of PotionMeta#getCustomEffects is always an empty list.
For example, when running this code while holding a potion of speed or strength:
player.sendMessage(((PotionMeta) player.getInventory().getItemInMainHand().getItemMeta()).getCustomEffects().toString());
the player receives the following message:
[]