public synchronized @Nullable Dimension getSize(@NotNull @NonNls String key, @Nullable Project project) {
    Dimension size = project == null ? null : WindowStateService.getInstance(project).getSize(key);
    if (size != null) return size;

    Pair<String, Float> pair = keyPair(key, project);
    size = myKeToSize.get(pair.first);
    if (size != null) {
      size = (Dimension)size.clone();
      float scale = pair.second;
      size.setSize(size.width / scale, size.height / scale);
    }
    return size;
  }
public synchronized @Nullable Dimension getSize(@NotNull @NonNls String key, @Nullable Project project)