private static Boolean isWarningIcon(final Label icon){
  return !isErrorIcon(icon);
}

private static Boolean isWarningIcon ( final Label icon ) { return ! isErrorIcon ( icon ) ; }
check if icon is warning icon and visible .
