int[] (final PsiFile file, final int caretOffset) { if (file instanceof PyFile) { final ArrayList<PsiElement> array = new ArrayList<>(); addNavigationElements(array, file); return MethodUpDownUtil.offsetsFromElements(array); } return null; }