question: protected LayerPane findSelectedPane ( ) { for ( LayerPane pane : getPanes ( ) ) { if ( pane . isSelected ( ) ) { return pane ; } } return null ; }
target:  Find the selected LayerPane in the current LayerPane list. Will return null if there isn't a selected pane.