ValidationResultType (@NotNull EventContext context) { final Object pluginType = context.eventData.get("plugin_type"); final PluginType type = pluginType != null ? PluginInfoDetectorKt.findPluginTypeByValue(pluginType.toString()) : null; if (type == null || !type.isSafeToReport()) { return ValidationResultType.REJECTED; } if (type.isPlatformOrJvm() || type == PluginType.FROM_SOURCES || hasPluginField(context)) { return ValidationResultType.ACCEPTED; } return ValidationResultType.REJECTED; }