SourceGroup newGroup = tryCreateSourceGroup(root);
if (newGroup == null) {
continue;
}
JavaSourceGroupID groupID = root.getGroupID();
if (groupID.getGroupName() == JavaSourceGroupName.RESOURCES) {
addToMultiMap(JavaProjectConstants.SOURCES_TYPE_RESOURCES, newGroup, result);
}
else {
addToMultiMap(JavaProjectConstants.SOURCES_TYPE_JAVA, newGroup, result);
if (groupID.isTest()) {
addToMultiMap(JavaProjectConstants.SOURCES_HINT_TEST, newGroup, result);
}
// TODO: Consider "SOURCES_TYPE_GROOVY" and "SOURCES_TYPE_SCALA", "SOURCES_TYPE_ANTLR"
}