ValidationResultType (@NotNull String data, @NotNull EventContext context) { if (isThirdPartyValue(data)) return ValidationResultType.ACCEPTED; final PluginInfo info = PluginInfoDetectorKt.getPluginInfo(getClassName(data)); context.setPayload(PLUGIN_INFO, info); if (info.getType() == PluginType.UNKNOWN) { // if we can't detect a plugin then probably it's not a class name return ValidationResultType.REJECTED; } return info.isSafeToReport() ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; }