public static GGlassPane getGlassPane(Component component) {

		Window window = WindowUtilities.windowForComponent(component);
		if (window instanceof JFrame) {
			JFrame frame = (JFrame) window;
			Component glass = frame.getGlassPane();

			if (!(glass instanceof GGlassPane)) {
				Msg.error(GGlassPane.class, "GGlassPane not installed on window: " + window,
					new AssertException());
				return null;
			}

			return ((GGlassPane) glass);
		}
		else if (window instanceof JDialog) {
			JDialog frame = (JDialog) window;
			Component glass = frame.getGlassPane();

			if (!(glass instanceof GGlassPane)) {
				Msg.error(GGlassPane.class, "GGlassPane not installed on window: " + window,
					new AssertException());
				return null;
			}

			return ((GGlassPane) glass);
		}
		return null;
	}
Returns true if this glass pane is blocking user input.
@return true if this glass pane is blocking user input.
Ghidra/Framework/Gui/src/main/java/ghidra/util/bean/GGlassPane.java