public static boolean hasMnemonic(String caption){
  return (caption.indexOf(MNEMONIC_INDICATOR) > -1);
}

public static boolean hasMnemonic ( String caption ) { return ( caption . indexOf ( MNEMONIC_INDICATOR ) > - 1 ) ; }
checks the caption whether an underscore " _ " is present to indicate that the following character is to act as mnemonic .
