public @Nullable Content findContent(@NotNull String key) {
    final ContentManager manager = getContentManager();
    if (manager == null) return null;

    Content[] contents = manager.getContents();
    for (Content content : contents) {
      String kind = content.getUserData(ViewImpl.ID);
      if (key.equals(kind)) {
        return content;
      }
    }

    return null;
  }
public @Nullable Content findContent(@NotNull String key)