boolean (PsiStatement body) { if (body instanceof PsiIfStatement && isVisibleHighlight(body)) { final PsiElement parent = body.getParent(); if (parent instanceof PsiIfStatement ifStatement) { if (ifStatement.getElseBranch() == body) { return false; } } } return body != null && !(body instanceof PsiBlockStatement); }