runelite-client/src/main/java/net/runelite/client/plugins/grandexchange/GrandExchangeInputListener.java
/**
	 * Finds the item clicked based on the mouse location
	 * @param items
	 * @return true if an item is found, false otherwise
	 */
Finds the item clicked based on the mouse location
@param items
@return true if an item is found, false otherwise
Finds the item clicked based on the mouse location @param items @return true if an item is found false otherwise
private boolean findAndSearch(WidgetItem[] items)
	{
		Point mousePosition = client.getMouseCanvasPosition();
		for (WidgetItem item : items)
		{
			if (item.getCanvasBounds().contains(mousePosition.getX(), mousePosition.getY()))
			{
				ItemComposition itemComposition = itemManager.getItemComposition(item.getId());
				search(itemComposition);
				return true;
			}
		}
		return false;
	}
private boolean findAndSearch ( WidgetItem [ ] items ) { Point mousePosition = client . getMouseCanvasPosition ( ) ; for ( WidgetItem item : items ) { if ( item . getCanvasBounds ( ) . contains ( mousePosition . getX ( ) , mousePosition . getY ( ) ) ) { ItemComposition itemComposition = itemManager . getItemComposition ( item . getId ( ) ) ; search ( itemComposition ) ; return true ; } } return false ; }
Finds the item clicked based on the mouse location
 @param items
 @return true if an item is found, false otherwise
Finds the item clicked based on the mouse location @param items @return true if an item is found false otherwise