* Resolves the given name as a data constructor given the current target module.
* @param name the name to be resolved.
* @return a QualifiedName for the resolved data constructor, or null if the name cannot be resolved.
*/
private QualifiedName resolveDataConsName(String name) {
ModuleTypeInfo moduleTypeInfo = getWorkspaceManager().getModuleTypeInfo(targetModule);
QualifiedName resolvedName = CodeAnalyser.resolveEntityNameAccordingToImportUsingClauses(name, Category.DATA_CONSTRUCTOR, moduleTypeInfo);
if (resolvedName != null) {
return resolvedName;