private static boolean processAssignmentStatement(@NotNull PsiElement element,
                                                    @NotNull Processor<? super PsiElement> consumer) {
    PsiElement parent = ReadAction.compute(() -> element.getParent());
    return !(parent instanceof PyAssignmentStatement) || consumer.process(parent);
  }
private static boolean processAssignmentStatement(@NotNull PsiElement element,
                                                    @NotNull Processor<? super PsiElement> consumer)