@Override
    public boolean disable(String pluginId) {
        return mainLock.applyWithReadLock(() -> {
            ThreadPoolPlugin plugin = registeredPlugins.get(pluginId);
            if (Objects.isNull(plugin) || !disabledPlugins.add(pluginId)) {
                return false;
            }
            forQuickIndexes(quickIndex -> quickIndex.removeIfPossible(plugin));
            return true;
        });
    }
@Test
    public void testDisable() {
        ThreadPoolPlugin plugin = new TestExecuteAwarePlugin();
        Assert.assertFalse(manager.disable(plugin.getId()));

        manager.register(plugin);
        Assert.assertTrue(manager.disable(plugin.getId()));
        Assert.assertFalse(manager.disable(plugin.getId()));

        Assert.assertTrue(manager.getExecuteAwarePluginList().isEmpty());
        Assert.assertEquals(1, manager.getAllPlugins().size());
    }