private @Nullable PsiFile getPsiFile(XSourcePosition currentPosition) {
    if (currentPosition == null) {
      return null;
    }

    return PsiManager.getInstance(getProject()).findFile(currentPosition.getFile());
  }
private @Nullable PsiFile getPsiFile(XSourcePosition currentPosition)