public static @Nullable FileType getKnownFileTypeOrAssociate(@NotNull VirtualFile file, @Nullable Project project) {
    FileType type = file.getFileType();
    if (type == FileTypes.UNKNOWN) {
      type = getKnownFileTypeOrAssociate(file.getName());
    }
    return type;
  }
public static @Nullable FileType getKnownFileTypeOrAssociate(@NotNull VirtualFile file, @Nullable Project project)