HierarchyTreeStructure (@NotNull String typeName, @NotNull PsiElement psiElement) { if (!getMethodType().equals(typeName)) { LOG.error("unexpected type: " + typeName); return null; } return new MethodHierarchyTreeStructure(myProject, (PsiMethod)psiElement, getCurrentScopeType()); }