ValidationResultType (@NotNull String data, @NotNull EventContext context) { if ("unknown".equals(data)) return ValidationResultType.ACCEPTED; if (hasPluginField(context)) { return acceptWhenReportedByJetBrainsPlugin(context); } PluginInfo info = getToolWindowInfo(data); return info.isDevelopedByJetBrains() ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; }