ValidationResultType (@NotNull String data, @NotNull EventContext context) { for (StatusBarWidgetFactory type : StatusBarWidgetFactory.EP_NAME.getExtensions()) { if (StringUtil.equals(type.getId(), data)) { final PluginInfo info = PluginInfoDetectorKt.getPluginInfo(type.getClass()); return info.isDevelopedByJetBrains() ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; } } return ValidationResultType.REJECTED; }