src/main/java/com/simpligility/maven/plugins/android/common/ArtifactResolverHelper.java
public Set<Artifact> getFilteredArtifacts( List<String> filteredScopes,
                                               Iterable<Artifact> allArtifacts, String... types )
    {
        final List<String> acceptTypeList = Arrays.asList( types );
        boolean acceptAllArtifacts = acceptTypeList.isEmpty();
        final Set<Artifact> results = new LinkedHashSet<Artifact>();
        for ( Artifact artifact : allArtifacts )
        {
            if ( artifact == null )
            {
                continue;
            }

            if ( filteredScopes.contains( artifact.getScope() ) )
            {
                continue;
            }

            if ( acceptAllArtifacts || acceptTypeList.contains( artifact.getType() ) )
            {
                results.add( artifact );
            }
        }
        return results;
    }
public Set<Artifact> getFilteredArtifacts( List<String> filteredScopes,
                                               Iterable<Artifact> allArtifacts, String... types )
    {
        final List<String> acceptTypeList = Arrays.asList( types );
        boolean acceptAllArtifacts = acceptTypeList.isEmpty();
        final Set<Artifact> results = new LinkedHashSet<Artifact>();
        for ( Artifact artifact : allArtifacts )
        {
            if ( artifact == null )
            {
                continue;
            }

            if ( filteredScopes.contains( artifact.getScope() ) )
            {
                continue;
            }

            if ( acceptAllArtifacts || acceptTypeList.contains( artifact.getType() ) )
            {
                results.add( artifact );
            }
        }
        return results;
    }
Filters provided artifacts and selects only defined types based on {@code types} argument
or all types if {@code types} argument is empty.

@param filteredScopes scopes to be filtered
@param allArtifacts artifacts to be filtered
@param types artifact types to be selected
@return a {@code List} of all project dependencies. Never {@code null}.
This should maintain dependency order to comply with library project resource precedence.