public static boolean isBundledUpdate(@Nullable IdeaPluginDescriptor descriptor) {
    if (descriptor == null || descriptor.isBundled()) {
      return false;
    }
    if (PluginManagerCore.isUpdatedBundledPlugin(descriptor)) {
      return true;
    }
    if (HEADLESS.isDisabled(descriptor.getPluginId())) {
      Path path = descriptor.getPluginPath();
      if (path == null) {
        return false;
      }
      Path name = path.getFileName();
      if (name == null) {
        return false;
      }
      return new File(PathManager.getPreInstalledPluginsPath(), name.toString()).exists();
    }
    return false;
  }
public static boolean isBundledUpdate(@Nullable IdeaPluginDescriptor descriptor)