private Class<?> guessPluginClass() {
    if (myIdentifierTokenSet.getTypes().length > 0) {
      return myIdentifierTokenSet.getTypes()[0].getClass();
    }
    if (myLiteralTokenSet.getTypes().length > 0) {
      return myLiteralTokenSet.getTypes()[0].getClass();
    }
    Object lexer = myLexer;
    while (true) {
      if (lexer instanceof FlexAdapter) {
        lexer = ((FlexAdapter)lexer).getFlex();
      }
      else if (lexer instanceof DelegateLexer) {
        lexer = ((DelegateLexer)lexer).getDelegate();
      }
      else {
        break;
      }
    }
    return lexer.getClass();
  }
private Class<?> guessPluginClass()