PsiElement (@NotNull Editor editor, int flags, int offset) { Project project = editor.getProject(); if (project == null) return null; if (BitUtil.isSet(flags, LOOKUP_ITEM_ACCEPTED)) { PsiElement element = getTargetElementFromLookup(project); if (element != null) { return element; } } return TargetElementUtilBase.findTargetElement(editor, flags, offset); }