UsageViewDescriptor (UsageInfo @NotNull [] usages) { return new UsageViewDescriptorAdapter() { @Override public PsiElement @NotNull [] getElements() { return new PsiElement[]{myHelper.getToSearchFor()}; } @Override public String getProcessedElementsHeader() { return GroovyBundle.message("header.extract.closure"); } }; }