@Override
public void initComponent() {
IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId("com.intellij.copyright"));
if (plugin != null && plugin.isEnabled() && addThisPluginsJarPathTo(plugin)) {
FileTypeExtensionPoint fileTypeEp = new FileTypeExtensionPoint();
fileTypeEp.filetype = "Erlang";
fileTypeEp.implementationClass = COPYRIGHTS_PROVIDER_CLASS_NAME;
fileTypeEp.setPluginDescriptor(plugin);
ExtensionPoint<Object> copyrightEP = Extensions.getRootArea().getExtensionPoint("com.intellij.copyright.updater");
copyrightEP.registerExtension(fileTypeEp);
}
}