private static void navigateTo(@NotNull Project project,
                                 VirtualFile file,
                                 SmartPsiElementPointer<?> pointer) {
    PsiElement element = pointer.getElement();
    int line = 0, column = 0;
    if (element != null) {
      Document document = element.getContainingFile().getViewProvider().getDocument();
      if (document != null) {
        int offset = element.getTextOffset();
        line = document.getLineNumber(offset);
        column = offset - document.getLineStartOffset(line);
      }
    }
    new OpenFileHyperlinkInfo(project, file, line, column).navigate(project);
  }
private static void navigateTo(@NotNull Project project,
                                 VirtualFile file,
                                 SmartPsiElementPointer<?> pointer)