protected Dimension getComponentSize() {
			Rectangle r = component.getVisibleRect();
			Dimension size = r.getSize();
			Container parent = component.getParent();
			if (parent instanceof JScrollPane || parent instanceof JViewport) {
				// this handles covering the component when it is inside of a scroll pane
				size = parent.getSize();
			}
			return 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