private static @Nullable FailReason fileTypeDescriptionError(@NotNull VirtualFile virtualFile) {
    if (virtualFile.getFileType().isBinary()) return FailReason.IS_BINARY;

    boolean hardcoded = checkHardcodedCharsetFileType(virtualFile);
    return hardcoded ? FailReason.BY_FILETYPE : null;
  }
private static @Nullable FailReason fileTypeDescriptionError(@NotNull VirtualFile virtualFile)