Figure figure = findFigure(x,y); if(figure instanceof CompositeFigure){ Figure figure2 = figure.findFigureInside(x,y); if(figure2 != null) { figure = figure2;
FigureEnumeration fe = figuresReverse(); while (fe.hasNextFigure()) { Figure figure = fe.nextFigure().findFigureInside(x, y); if (figure != null) { return figure;
	public Figure findFigureInside(int x, int y) {		Figure figure = findFigure(x,y);		if(figure instanceof CompositeFigure){			Figure figure2 = figure.findFigureInside(x,y);			if(figure2 != null) {				figure = figure2;			}		}		return figure;	}