boolean (@Nullable final PsiElement element) { if (element == null) return false; final PsiElement parent = element.getParent(); return parent instanceof GrIfStatement && element == ((GrIfStatement)parent).getElseBranch(); }