public boolean containsWindow(Class<?> windowClass){
  return (getWindow(windowClass) != null);
}

public boolean containsWindow ( Class < ? > windowClass ) { return ( getWindow ( windowClass ) != null ) ; }
checks , whether an instance of the given window class is already in the window list .
