Constant folding in computed enum members

Please rename the function to "isTopLevelValueImportWithEntityName"