int (@NotNull IndexId<?, ?> indexId) { int result = 0; for (GlobalIndexFilter extension: EP_NAME.getExtensionList()) { if (extension.affectsIndex(indexId)) { result += extension.getVersion(); } } return result; }