public static JLayer<JComponent> getDisabledLayer(JComponent component) {
		JLayer<JComponent> layer = new JLayer<JComponent>(component, disabledUI);

		return layer;
	}
A factory to create JLayer instances to provide the L&amp;F and functionality of a 
disabled panel -- the component assumes a disabled color, and selection via mouse and
keyboard is prevented. As this is simply a layer in the UI stack, previous states of 
components is maintained and unmodified.
Ghidra/Framework/Docking/src/main/java/docking/DisabledComponentLayerFactory.java