private void throwException(@NotNull String message) {
    Class<? extends Lexer> lexerClass = myDelegate.getClass();
    boolean isFlexAdapter = lexerClass == FlexAdapter.class;
    throw PluginException.createByClass(message + ": " + (isFlexAdapter ? myDelegate.toString() : lexerClass.getName()),
                                        null,
                                        isFlexAdapter ? ((FlexAdapter)myDelegate).getFlex().getClass() : lexerClass);
  }
private void throwException(@NotNull String message)