void (@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext) { editor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE); PsiElement element = findTargetMember(file, editor); if (element == null) { element = CommonDataKeys.PSI_ELEMENT.getData(dataContext); } invokeOnElement(project, editor, element); }