private void checkGlobalHotkeyWarning(){
  if (globalHotkeyErrorWarning == null) {
    return;
  }
  for (  Hotkey hotkey : hotkeys) {
    if (doesHotkeyHaveAction(hotkey) && hotkey.type == Type.GLOBAL) {
      LOGGER.log(Logging.USERINFO,globalHotkeyErrorWarning + " " + "[You are getting this message because you have a "+ "global hotkey configured. If you don't use it you "+ "can ignore this warning.]");
      globalHotkeyErrorWarning=null;
      return;
    }
  }
}

private void checkGlobalHotkeyWarning ( ) { if ( globalHotkeyErrorWarning == null ) { return ; } for ( Hotkey hotkey : hotkeys ) { if ( doesHotkeyHaveAction ( hotkey ) && hotkey . type == Type . GLOBAL ) { LOGGER . log ( Logging . USERINFO , globalHotkeyErrorWarning + " " + "[You are getting this message because you have a " + "global hotkey configured. If you don't use it you " + "can ignore this warning.]" ) ; globalHotkeyErrorWarning = null ; return ; } } }
output warning of error when initializing global hotkey feature . only output once and only when a global hotkey is currently configured .
