ValueSerializationProblemReporter () { return problem -> { PluginId pluginId = ((ID<?, ?>)myIndexId).getPluginId(); if (pluginId != null) { LOG.error(new PluginException(problem, pluginId)); } else { LOG.error(problem); } }; }