protected Rectangle getComponentBounds(GGlassPane glassPane) {

			Rectangle r = component.getVisibleRect();
			Point point = r.getLocation();
			Dimension size = r.getSize();

			Container parent = component.getParent();
			Component coordinateSource = parent;
			if (parent instanceof JScrollPane || parent instanceof JViewport) {
				// this handles covering the component when it is inside of a scroll pane
				point = parent.getLocation();
				size = parent.getSize();
				coordinateSource = parent.getParent();
			}

			point = SwingUtilities.convertPoint(coordinateSource, point, glassPane);
			return new Rectangle(point, size);
		}
Hides any message being displayed.  This can be called even if the message has been hidden.
Ghidra/Framework/Docking/src/main/java/docking/util/GGlassPaneMessage.java