private void showObjectUpcastedUsageView(final ObjectUpcastedUsageInfo[] usages) {
    UsageViewPresentation presentation = new UsageViewPresentation();
    presentation.setTargetsNodeText(JavaRefactoringBundle.message("replacing.inheritance.with.delegation"));
    presentation.setCodeUsagesString(JavaRefactoringBundle.message("instances.casted.to.java.lang.object"));
    final String upcastedString = JavaRefactoringBundle.message("instances.upcasted.to.object");
    presentation.setUsagesString(upcastedString);
    presentation.setTabText(upcastedString);

    UsageViewManager manager = UsageViewManager.getInstance(myProject);
    manager.showUsages(
      new UsageTarget[]{new PsiElement2UsageTargetAdapter(myClass)},
      UsageInfoToUsageConverter.convert(new PsiElement[]{myClass}, usages),
      presentation
    );

    WindowManager.getInstance().getStatusBar(myProject).setInfo(JavaRefactoringBundle.message("instances.upcasted.to.java.lang.object.found"));
  }
private void showObjectUpcastedUsageView(final ObjectUpcastedUsageInfo[] usages)