private @NotNull List<JavaReferenceInfo> getInstances(int limit) {
    return ContainerUtil.map(
      getInstancesProvider().getInstances(limit),
      referenceInfo -> ((JavaReferenceInfo)referenceInfo)
    );
  }
private @NotNull List<JavaReferenceInfo> getInstances(int limit)