{
// todo Proper icon for RTL
// boolean ltr = getComponentOrientation ().isLeftToRight ();
if ( !rotateStateIcon || titlePanePostion == TOP || titlePanePostion == BOTTOM )
{
cachedCollapseIcon = new OrientedIcon ( collapseIcon );
}
else if ( titlePanePostion == LEFT )
{
cachedCollapseIcon = ImageUtils.rotateImage90CCW ( collapseIcon );
}