private static boolean isIconified(final Component c) {
    if ((c != null) && (c instanceof Frame)) {
      return (((Frame) c).getExtendedState() & Frame.ICONIFIED) != 0;
    }
    return false;
  }
Checks whether a <code>Component</code> is iconified. Always returns <code>false</code> on
<code>Component</code>s that are not descendants of <code>Frame</code>.

@param c the <code>Component</code> to check
@return <code>true</code> if <code>c</code> is non-null and a descendant of <code>Frame</code>
    and <code>c</code> is currently iconified, <code>false</code> otherwise.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CMessageBox.java