public static Map<String, String> getUseImportMap(PhpDocComment phpDocComment) {
// search for use alias in local file
final Map<String, String> useImports = new HashMap<String, String>();
PhpNamespace phpNamespace = PsiTreeUtil.getParentOfType(phpDocComment, PhpNamespace.class);
if(phpNamespace == null) {
return useImports;
}
phpNamespace.acceptChildren(new PsiRecursiveElementWalkingVisitor() {
@Override
public void visitElement(PsiElement element) {
if (element instanceof PhpUse) {
visitUse((PhpUse) element);
}