private Icon getIcon ( Severity severity ) { if ( severity == Severity . ERROR ) { return getErrorIcon ( ) ; } if ( severity == Severity . WARNING ) { return getWarningIcon ( ) ; } return getInfoIcon ( ) ; }
Returns the icon for the given severity .