boolean openLayeredComponentPopupMenus(int x, int y, int layer) {
		if (layerBasket.isEmpty())
			return false;
		Layered c = null;
		synchronized (layerBasket) {
			int n = layerBasket.size();
			for (int i = n - 1; i >= 0; i--) {
				c = layerBasket.get(i);
				if (c.getLayer() == layer) {
					if (c.contains(x, y)) {
						((ModelComponent) c).setSelected(true);
						if (popupMenuForLayeredComponent == null) {
							popupMenuForLayeredComponent = new LayeredComponentPopupMenu(this);
							popupMenuForLayeredComponent.pack();
						}
						popupMenuForLayeredComponent.show(this, x, y);
						return true;
					}
				}
			}
		}
		return false;
	}