ModelComponent whichLayeredComponent(int x, int y) {
		if (layerBasket.isEmpty())
			return null;
		synchronized (layerBasket) {
			Layered o = null;
			int n = layerBasket.size();
			for (int i = n - 1; i >= 0; i--) {
				o = layerBasket.get(i);
				if (o instanceof ModelComponent) {
					ModelComponent t = (ModelComponent) o;
					if (t.contains(x, y)) {
						return t;
					}
				}
			}
		}
		return null;
	}