public static @Nullable FirefoxProfile getDefaultProfile(List<? extends FirefoxProfile> profiles) {
    if (profiles.isEmpty()) {
      return null;
    }

    for (FirefoxProfile profile : profiles) {
      if (profile.isDefault()) {
        return profile;
      }
    }
    return profiles.get(0);
  }
public static @Nullable FirefoxProfile getDefaultProfile(List<? extends FirefoxProfile> profiles)