void (@NotNull AnActionEvent e, boolean state) { LogLevelConfigurationManager logsManager = LogLevelConfigurationManager.getInstance(); List<LogCategory> logsCategories = new ArrayList<>(logsManager.getState().categories); logsCategories.removeIf(c -> LOGGER_NAME.equals(c.getCategory())); if (state) { logsCategories.add(new LogCategory(LOGGER_NAME, DebugLogLevel.DEBUG)); } logsManager.setCategories(logsCategories); }