private static Exception wrapException(InvalidMirrorException e, VirtualFile file) {
    ClassFileDecompilers.Decompiler decompiler = ClassFileDecompilers.getInstance().find(file, ClassFileDecompilers.Light.class);
    if (decompiler != null) {
      PluginDescriptor plugin = PluginManager.getPluginByClass(decompiler.getClass());
      if (plugin != null) {
        return new PluginException(e, plugin.getPluginId());
      }
    }

    return e;
  }
private static Exception wrapException(InvalidMirrorException e, VirtualFile file)