public static EnumSet<WorldType> toWorldTypes(final EnumSet<net.runelite.http.api.worlds.WorldType> apiTypes)
	{
		final EnumSet<WorldType> types = EnumSet.noneOf(WorldType.class);

		for (net.runelite.http.api.worlds.WorldType apiType : apiTypes)
		{
			types.add(fromApiWorldType(apiType));
		}

		return types;
	}
@Test
	public void testToWorldTypes()
	{
		assertEquals(WorldType.values().length, WorldUtil.toWorldTypes(EnumSet.allOf(WorldType.class)).size());
	}