void (MouseEvent e) { InternalDecoratorImpl decorator = InternalDecoratorImpl.Companion.findTopLevelDecorator(myComponent); if (decorator == null || decorator.isHeaderVisible()) { e.getComponent().setCursor(Cursor.getDefaultCursor()); return; } e.getComponent().setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR)); }