private static @Nullable StatusBarEx getStatusBar(@Nullable Window frame) {
    return frame instanceof IdeFrame && !(frame instanceof WelcomeFrame) ?
           (StatusBarEx)((IdeFrame)frame).getStatusBar() :
           null;
  }
private static @Nullable StatusBarEx getStatusBar(@Nullable Window frame)