private boolean isInstalledAndEnabled() {
    return PluginManagerCore.getPlugin(myPlugin.getPluginId()) != null && !myPluginModel.getState(myPlugin).isDisabled();
  }
private boolean isInstalledAndEnabled()