private static Point getScreenLocation(Component c) {
		if (c instanceof Window) {
			return c.getLocation(); // window's coordinates are screen coordinates
		}

		if (!c.isShowing()) {
			return null; // not on screen
		}

		Window w = windowForComponent(c);
		if (w == null) {
			return null; // not on screen (don't think this can happen)
		}

		Point p = c.getLocationOnScreen();
		return p;
	}
Gets the <b>usable</b> screen bounds for the screen in which the given component is
showing.  Returns null if the given component is not showing.   Usable bounds are the
screen bounds after subtracting insets (for things like menu bars and task bars).

@param c the component
@return the screen bounds; null if the component is not showing
Ghidra/Framework/Generic/src/main/java/generic/util/WindowUtilities.java