public @Nullable RemoteServer<S> getSelectedServer() {
    ServerItem selected = getSelectedItem();
    //noinspection unchecked
    return selected == null ? null : (RemoteServer<S>)selected.findRemoteServer();
  }
public @Nullable RemoteServer<S> getSelectedServer()