void (@NotNull String debugReasonMessage, @NotNull Runnable command) { PluginId pluginId = PluginUtil.getInstance().findPluginId(new Throwable()); LOG.info("File types changed: " + debugReasonMessage + (pluginId != null ? ". Caused by plugin '" + pluginId.getIdString() + "'." : "")); fireBeforeFileTypesChanged(); try { command.run(); } finally { fireFileTypesChanged(); } }