code: static Visibility getEffectiveVisibilityForOverriddenProperty(
        Visibility visibility,
        @Nullable Visibility fileOverviewVisibility,
        String propertyName,
        @Nullable CodingConvention codingConvention) {
      if (codingConvention != null && codingConvention.isPrivate(propertyName)) {
        return Visibility.PRIVATE;
      }
      return (fileOverviewVisibility != null
          && visibility == Visibility.INHERITED)
          ? fileOverviewVisibility
          : visibility;
    }
docs: Returns the effective visibility of the given overridden property. An overridden property
  inherits the visibility of the property it overrides.