private Map<String, String> parseResources(List<String> optionValues) {
    """
	Parses the given list of option values into a map of resources and their
	associated (optional) scopes.
	
	Example: `maven:repository::http://my-host/repo` will be an entry with key
	`maven:repository` and value `http://my-host/repo`.
	
	@param optionValues
	The value.
	@return The map of resources and scopes.
    """
        Map<String, String> resources = new HashMap<>();
        for (String file : optionValues) {
            String[] parts = file.split("::");
            String fileName;
            String scopeName = null;
            if (parts.length == 2) {
                scopeName = parts[0];
                fileName = parts[1];
            } else {
                fileName = parts[0];
            }
            resources.put(fileName, scopeName);
        }
        return resources;
    }
private Map<String, String> parseResources(List<String> optionValues) {
        Map<String, String> resources = new HashMap<>();
        for (String file : optionValues) {
            String[] parts = file.split("::");
            String fileName;
            String scopeName = null;
            if (parts.length == 2) {
                scopeName = parts[0];
                fileName = parts[1];
            } else {
                fileName = parts[0];
            }
            resources.put(fileName, scopeName);
        }
        return resources;
    }
private Map < String , String > parseResources ( List < String > optionValues ) { Map < String , String > resources = new HashMap <> ( ) ; for ( String file : optionValues ) { String [ ] parts = file . split ( "::" ) ; String fileName ; String scopeName = null ; if ( parts . length == 2 ) { scopeName = parts [ 0 ] ; fileName = parts [ 1 ] ; } else { fileName = parts [ 0 ] ; } resources . put ( fileName , scopeName ) ; } return resources ; }
Parses the given list of option values into a map of resources and their
associated (optional) scopes.

Example: `maven:repository::http://my-host/repo` will be an entry with key
`maven:repository` and value `http://my-host/repo`.

@param optionValues
The value.
@return The map of resources and scopes.
Parses the given list of option values into a map of resources and their associated ( optional ) scopes .