public static void combineMonomeConfigurations() {
		Configuration configuration = Main.main.configuration;
		if (configuration.getMonomeConfigurations() == null) {
			return;
		}
		@SuppressWarnings("unchecked")
        HashMap<Integer, MonomeConfiguration> tmpMonomeConfigurations = (HashMap<Integer, MonomeConfiguration>) configuration.getMonomeConfigurations().clone();
		Iterator<Integer> it = tmpMonomeConfigurations.keySet().iterator();
		while (it.hasNext()) {
			Integer key = it.next();
			MonomeConfiguration mainMonomeConfig = configuration.getMonomeConfigurations().get(key);
			if (mainMonomeConfig == null) {
				continue;
			}
			Iterator<Integer> it2 = tmpMonomeConfigurations.keySet().iterator();
			while (it2.hasNext()) {
				Integer key2 = it2.next();
				MonomeConfiguration checkMonomeConfig = configuration.getMonomeConfigurations().get(key2);
				if (checkMonomeConfig == null) {
					continue;
				}
				if (checkMonomeConfig.prefix.compareTo(mainMonomeConfig.prefix) == 0 && checkMonomeConfig.index != mainMonomeConfig.index) {
					mainMonomeConfig.sizeX += checkMonomeConfig.offsetX;
					mainMonomeConfig.sizeY += checkMonomeConfig.offsetY;
					mainMonomeConfig.setFrameTitle();
					removeMonomeConfiguration(key2);
				}
			}
		}
	}