UsageViewDescriptor (UsageInfo @NotNull [] usages) { return new UsageViewDescriptorAdapter() { @Override public PsiElement @NotNull [] getElements() { return new PsiElement[]{myRecordCandidate.getPsiClass()}; } @Override public String getProcessedElementsHeader() { return JavaRefactoringBundle.message("convert.to.record.title"); } }; }