UsageViewDescriptor (UsageInfo @NotNull [] usages) { return new UsageViewDescriptorAdapter() { @Override public PsiElement @NotNull [] getElements() { return new PsiElement[] {myFunction}; } @Override public String getProcessedElementsHeader() { return getRefactoringName(); } }; }