PsiElement (@NotNull List<UsageInfo> usages, @NotNull PsiFile destination) { return findFirstTopLevelUsageInFile(usages, destination) .map(element -> PyPsiUtils.getParentRightBefore(element, element.getContainingFile())) .orElse(null); }