private static MultiMap<String, Macro> init() {
    MultiMap<String, Macro> result = MultiMap.create();
    for (Macro macro: Macro.EP_NAME.getExtensionList()) {
      result.putValue(macro.getName(), macro);
    }
    Macro.EP_NAME.addExtensionPointListener(new ExtensionPointListener<>() {
      @Override
      public void extensionAdded(@NotNull Macro extension, @NotNull PluginDescriptor pluginDescriptor) {
        myMacroTable.putValue(extension.getName(), extension);
      }

      @Override
      public void extensionRemoved(@NotNull Macro extension, @NotNull PluginDescriptor pluginDescriptor) {
        myMacroTable.remove(extension.getName(), extension);
      }
    }, ApplicationManager.getApplication());
    return result;
  }
private static MultiMap<String, Macro> init()