public <T extends Component> Set<UUID> getAllEntitiesPossessingComponent(
            Class<T> componentType) {
        synchronized (componentStores) {
            HashMap<UUID, ? extends Component> store = componentStores
                    .get(componentType);

            if (store == null) {
                return new HashSet<>();
            }

            return store.keySet();
        }
    }