private static boolean startFindUsages(@NotNull Editor editor, PsiElement element) {
   if (element != null) {
     ShowUsagesAction showUsages =
         (ShowUsagesAction) ActionManager.getInstance().getAction(ShowUsagesAction.ID);
     RelativePoint popupPosition = JBPopupFactory.getInstance().guessBestPopupLocation(editor);
     showUsages.startFindUsages(element, popupPosition, editor, ShowUsagesAction.USAGES_PAGE_SIZE);
     return true;
   }
   return false;
 }