int (String newPluginVersion, @NotNull IdeaPluginDescriptor existingPlugin, @Nullable BuildNumber newBuildNumber) { int state = VersionComparatorUtil.compare(newPluginVersion, existingPlugin.getVersion()); if (state < 0 && (isBrokenPlugin(existingPlugin) || PluginManagerCore.isIncompatible(existingPlugin, newBuildNumber))) { state = 1; } return state; }