ValidationResultType (@NotNull String data, @NotNull EventContext context) { if (isThirdPartyValue(data) || "unknown".equals(data)) return ValidationResultType.ACCEPTED; final String configurationId = getEventDataField(context, ID_FIELD.getName()); final String factoryId = getEventDataField(context, FACTORY_FIELD.getName()); if (configurationId == null) { return ValidationResultType.REJECTED; } if (StringUtil.equals(data, configurationId) || StringUtil.equals(data, factoryId)) { final Pair<ConfigurationType, ConfigurationFactory> configurationAndFactory = findConfigurationAndFactory(configurationId, factoryId); final ConfigurationType configuration = configurationAndFactory.getFirst(); final ConfigurationFactory factory = configurationAndFactory.getSecond(); if (configuration != null && (StringUtil.isEmpty(factoryId) || factory != null)) { final PluginInfo info = PluginInfoDetectorKt.getPluginInfo(configuration.getClass()); context.setPayload(PLUGIN_INFO, info); return info.isDevelopedByJetBrains() ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; } } return ValidationResultType.REJECTED; }