static void moveCaretTo(final @NotNull Editor editor, final PsiElement element) {
    editor.getCaretModel().moveToOffset(element.getTextOffset());
    editor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE);
  }
static void moveCaretTo(final @NotNull Editor editor, final PsiElement element)