@Nullable
    private static PyStatementPart findIfStatementPartByElement(@NotNull PsiElement element, @NotNull List<PyStatementPart> parts) {
      return ContainerUtil.find(parts, part -> PsiTreeUtil.isAncestor(part, element, true));
    }
@Nullable
    private static PyStatementPart findIfStatementPartByElement(@NotNull PsiElement element, @NotNull List<PyStatementPart> parts)