HighlightUsagesHandlerBase<PsiRecordComponent> (@NotNull Editor editor, @NotNull PsiFile file, @NotNull PsiElement target) { if (!(target instanceof PsiIdentifier)) return null; PsiElement parent = target.getParent(); if (!(parent instanceof PsiReferenceExpression)) return null; PsiElement resolved = ((PsiReferenceExpression)parent).resolve(); if (!(resolved instanceof LightRecordMember member)) return null; PsiRecordComponent component = member.getRecordComponent(); return new RecordComponentHighlightUsagesHandler(editor, file, component); }