void (@NotNull Collection<PluginId> foundPlugins, final boolean hasConflictWithPlatform) { if (foundPlugins.size() < 2) { Logger.getInstance(GuiPluginConflictReporter.class).warn("One should provide at least two conflicting classes to report"); return; } Runnable task = () -> { new PluginConflictDialog(new ArrayList<>(foundPlugins), hasConflictWithPlatform).show(); }; if (EventQueue.isDispatchThread()) { task.run(); } else { EventQueue.invokeLater(task); } }