private boolean isPaintBackgroundPattern() {
			FlatTestFrame frame = (FlatTestFrame) SwingUtilities.getAncestorOfClass( FlatTestFrame.class, this );
			return frame != null && frame.isPaintBackgroundPattern();
		}
Overridden to see which components paint background with color from parent.
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.java