@Override
  public int[] getMethodNavigationOffsets(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;
  }
@Override
  public int[] getMethodNavigationOffsets(final PsiFile file, final int caretOffset)