private static boolean isCondition(@NotNull ASTNode node) {
    final PsiElement element = node.getPsi();
    final PyAstConditionalStatementPart conditionalStatement =
      ObjectUtils.tryCast(element.getParent(), PyAstConditionalStatementPart.class);
    return conditionalStatement != null && conditionalStatement.getCondition() == element;
  }
private static boolean isCondition(@NotNull ASTNode node)