ValidationResultType (@NotNull String data, @NotNull EventContext context) { if (isThirdPartyValue(data)) return ValidationResultType.ACCEPTED; final FileType fileType = FileTypeManager.getInstance().findFileTypeByName(data); if (fileType == null || !StringUtil.equals(fileType.getName(), data)) { return ValidationResultType.REJECTED; } final boolean isDevelopedByJB = PluginInfoDetectorKt.getPluginInfo(fileType.getClass()).isDevelopedByJetBrains(); return isDevelopedByJB ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; }