InputMap getInputMap(int condition) {
   if (condition == JComponent.WHEN_IN_FOCUSED_WINDOW) {
     Object[] bindings =
         (Object[]) DefaultLookup.get(optionPane, this, "OptionPane.windowBindings");
     if (bindings != null) {
       return LookAndFeel.makeComponentInputMap(optionPane, bindings);
     }
   }
   return null;
 }