public @Nullable PluginId getOwner(@Nullable VirtualFile resource) {
    VirtualFile file = resource == null ? null : getPluginResourcesDirectoryFor(resource);
    return file == null ? null : PluginId.findId(file.getName());
  }
public @Nullable PluginId getOwner(@Nullable VirtualFile resource)