void () { PointerInfo pointerInfo = MouseInfo.getPointerInfo(); Color pixelColor = getPixelColor(pointerInfo.getLocation()); cancelPipette(); notifyListener(pixelColor, 0); setInitialColor(pixelColor); }