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