Java 类com.intellij.psi.impl.source.tree.java.PsiIdentifierImpl 实例源码

项目:idea-android-studio-plugin    文件:InflateViewAnnotator.java   
@Nullable
public static InflateContainer matchInflate(@Nullable PsiElement psiElement) {
    if(!(psiElement instanceof PsiIdentifierImpl)) {
        return null;
    }

    // View "rootView" = inflater.inflate(R.layout.fragment_main, container, false);
    PsiElement psiLocalVariable = psiElement.getParent();
    if(psiLocalVariable instanceof PsiLocalVariable) {
        return matchInflate((PsiLocalVariable) psiLocalVariable);
    }

    return null;

}