void (String ... fileNames) { configureByFiles(fileNames); final PsiElement targetElement = TargetElementUtil .findTargetElement(myFixture.getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assert targetElement != null : "Cannot find referenced element"; assert targetElement instanceof PyFunction : "Referenced element is not PyFunction"; PyFunction function = (PyFunction) targetElement; checkHierarchyTreeStructure(function); }