void (@NotNull Editor editor, @NotNull Project project, @NotNull PsiElement element, @Nullable RelativePoint point) { if (DumbService.getInstance(project).isDumb()) { AnAction action = ActionManager.getInstance().getAction(ShowUsagesAction.ID); String name = action.getTemplatePresentation().getText(); DumbService.getInstance(project).showDumbModeNotificationForAction(ActionUtil.getUnavailableMessage(name, false), ShowUsagesAction.ID); } else { RelativePoint popupPosition = point != null ? point : JBPopupFactory.getInstance().guessBestPopupLocation(editor); ShowUsagesAction.startFindUsages(element, popupPosition, editor); } }