public synchronized void setSize(@NotNull @NonNls String key, Dimension size, @Nullable Project project) {
    getWindowStateService(project).putSize(key, size);
    Pair<String, Float> pair = keyPair(key, project);
    if (size != null) {
      size = (Dimension)size.clone();
      float scale = pair.second;
      size.setSize(size.width * scale, size.height * scale);
      myKeToSize.put(pair.first, size);
    }
    else {
      myKeToSize.remove(pair.first);
    }
    incModificationCount();
  }
public synchronized void setSize(@NotNull @NonNls String key, Dimension size, @Nullable Project project)