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