@Override
    protected @NotNull ValidationResultType doValidate(@NotNull String data, @NotNull EventContext context) {
      final Object fileTypeName = context.eventData.get("file_type");
      final FileType fileType = fileTypeName != null ? FileTypeManager.getInstance().findFileTypeByName(fileTypeName.toString()) : null;
      if (fileType == null || fileType == UnknownFileType.INSTANCE)
        return ValidationResultType.THIRD_PARTY;

      FileTypeManager fileTypeManager = FileTypeManager.getInstance();
      if (!(fileTypeManager instanceof FileTypeManagerImpl)) {
        return ValidationResultType.THIRD_PARTY;
      }
      List<FileNameMatcher> fileNameMatchers = ((FileTypeManagerImpl)fileTypeManager).getStandardMatchers(fileType);
      Optional<FileNameMatcher> fileNameMatcher = fileNameMatchers.stream().filter(x -> x.getPresentableString().equals(data)).findFirst();
      if (fileNameMatcher.isEmpty()) {
        return ValidationResultType.THIRD_PARTY;
      }

      return acceptWhenReportedByJetBrainsPlugin(context);
    }
@Override
    protected @NotNull ValidationResultType doValidate(@NotNull String data, @NotNull EventContext context)