@Override
		protected void paintComponent( Graphics g ) {
			Point locationOnScreen = getLocationOnScreen();
			g.translate( -locationOnScreen.x, -locationOnScreen.y );

			g.setColor( Color.red );
			((Graphics2D)g).draw( createSafeTriangle() );
		}
Improves usability of submenus by using a
<a href="https://height.app/blog/guide-to-build-context-menus#safe-triangle">safe triangle</a>
to avoid that the submenu closes while the user moves the mouse to it.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/SubMenuUsabilityHelper.java