void (final @NotNull List<? extends PsiElement> targets) { final PsiElement parent = myTarget.getParent(); if (!(parent instanceof PyReturnStatement)) { return; } final PyFunction function = PsiTreeUtil.getParentOfType(myTarget, PyFunction.class); if (function == null) { return; } highlightExitPoints((PyReturnStatement)parent, function); }