code: protected static List<Repository> createFlattenedRepositories( List<Repository> repositories )
      {
          if ( repositories != null )
          {
              List<Repository> flattenedRepositories = new ArrayList<Repository>( repositories.size() );
              for ( Repository repo : repositories )
              {
                  // filter inherited repository section from super POM (see MOJO-2042)...
                  if ( !isCentralRepositoryFromSuperPom( repo ) )
                  {
                      flattenedRepositories.add( repo );
                  }
              }
              return flattenedRepositories;
          }
          return repositories;
      }
docs: Creates a flattened {@link List} of {@link Repository} elements where those from super-POM are omitted.
  
  @param repositories is the {@link List} of {@link Repository} elements. May be <code>null</code>.
  @return the flattened {@link List} of {@link Repository} elements or <code>null</code> if <code>null</code> was
  given.