public void install() throws IOException {
    PluginInstaller.installAfterRestartAndKeepIfNecessary(myDescriptor, getFilePath(), myOldFile);

    if (LoadingState.COMPONENTS_LOADED.isOccurred()) {
      InstalledPluginsState.getInstance().onPluginInstall(myDescriptor,
                                                          PluginManagerCore.isPluginInstalled(myDescriptor.getPluginId()),
                                                          true);
    }
    else {
      InstalledPluginsState.addPreInstalledPlugin(myDescriptor);
    }
  }
public void install()