void (@NotNull FileTypeBean bean, @NotNull FileTypeBean otherBean) { Application application = ApplicationManager.getApplication(); if (application != null) { PluginConflictReporter conflictReporter = application.getService(PluginConflictReporter.class); if (conflictReporter != null) { Set<PluginId> conflictingPlugins = new HashSet<>(); // assume core plugins are not stupid enough to register two file types with the same name and if they are, the tests are going to catch that conflictingPlugins.add(bean.getPluginId()); conflictingPlugins.add(otherBean.getPluginId()); boolean hasConflictWithPlatform = PluginManagerCore.CORE_ID.equals(bean.getPluginId()) || PluginManagerCore.CORE_ID.equals(otherBean.getPluginId()); conflictReporter.reportConflict(conflictingPlugins, hasConflictWithPlatform); return; } } LOG.error(new PluginException("Trying to override already registered file type '" + bean.name + "'", bean.getPluginId())); }