public TSettingContainer(T[] values, List<?> list, String error)
	{
		if (list == null)
			return;
		
		container = new HashSet<T>();
		
		for (Object obj : list)
		{
			if (obj == null || obj instanceof String == false)
				continue;
			
			boolean valid = false;
			
			for (T val : values)
			{
				if (val.toString().equalsIgnoreCase((String) obj))
				{
					if (!container.contains(val))
						container.add(val);
					valid = true;
					break;
				}
			}
			
			if (!valid)
				P.p().getLogger().warning("Invalid " + error + " " + obj);
		}
	}