public static IndicesBlockStatus parseBlockSettings(final GetSettingsResponse settingsResponse) {
        IndicesBlockStatus result = new IndicesBlockStatus();
        final var indexToSettingsMap = settingsResponse.getIndexToSettings();
        final String[] indicesInResponse = indexToSettingsMap.keySet().toArray(new String[0]);
        for (String index : indicesInResponse) {
            final Settings blockSettings = indexToSettingsMap.get(index).getByPrefix(BLOCK_SETTINGS_PREFIX);

            if (!blockSettings.isEmpty()) {
                final Set<String> blockSettingsNames = blockSettings.names();
                final Set<String> blockSettingsSetToTrue = blockSettingsNames.stream()
                        .filter(s -> blockSettings.getAsBoolean(s, false))
                        .map(s -> BLOCK_SETTINGS_PREFIX + s)
                        .collect(Collectors.toSet());
                if (!blockSettingsSetToTrue.isEmpty()) {
                    result.addIndexBlocks(index, blockSettingsSetToTrue);
                }
            }
        }

        return result;
    }
@Test
    public void noBlockedIndicesIdentifiedIfEmptySettingsPresent() {
        var settingsBuilder = Map.of("index_0", Settings.builder().build());
        GetSettingsResponse emptySettingsResponse = new GetSettingsResponse(settingsBuilder, Map.of());
        final IndicesBlockStatus indicesBlockStatus = BlockSettingsParser.parseBlockSettings(emptySettingsResponse);
        assertNotNull(indicesBlockStatus);
        assertEquals(0, indicesBlockStatus.countBlockedIndices());
    }