void (@NotNull KeyedLazyInstance<T> bean, @NotNull PluginDescriptor pluginDescriptor) { if (bean.getKey() == null) { throw new PluginException("No key specified for extension of class " + bean.getInstance().getClass(), pluginDescriptor.getPluginId()); } invalidateCacheForExtension(bean.getKey()); }