PyTypeDeclarationStatement (@NotNull PsiElement element) { final PyTypeDeclarationStatement statement = as(element.getParent(), PyTypeDeclarationStatement.class); return statement != null && statement.getTarget() == element ? statement : null; }