private static GraphicsConfiguration getGraphicsConfigurationForPoint(Point p) {
		GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
		GraphicsDevice[] devices = ge.getScreenDevices();
		for (GraphicsDevice device : devices) {
			if (device.getType() == GraphicsDevice.TYPE_RASTER_SCREEN) {
				GraphicsConfiguration config = device.getDefaultConfiguration();
				if (config.getBounds().contains(p)) {
					return config;
				}
			}
		}

		GraphicsDevice defaultDevice = ge.getDefaultScreenDevice();
		return defaultDevice.getDefaultConfiguration();
	}
Update the bounds to be within contained within the visible bounds of the screen.  The given
component is used to determine which screen to use for updating the bounds.

<P>Note: the given comonent's bounds will not be adjusted by this method

@param c the on screen component, used to determine which screen to check against the given
       bounds
@param bounds the bounds to adjust
@throws IllegalArgumentException if the given component is not yet realized (see
        {@link Component#isShowing()}
Ghidra/Framework/Generic/src/main/java/generic/util/WindowUtilities.java