PluginProblemReporter () { if (ApplicationManager.getApplication() == null) { //if the application isn't initialized yet return silly implementation which reports all plugins problems as platform ones return new PluginProblemReporter() { @Override public @NotNull PluginException createPluginExceptionByClass(@NotNull String errorMessage, @Nullable Throwable cause, @NotNull Class pluginClass) { return new PluginException(errorMessage, cause, null); } }; } return ApplicationManager.getApplication().getService(PluginProblemReporter.class); }