private static @Nullable ProjectFrameHelper getFrame() {
    return ProjectFrameHelper.getFrameHelper(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow());
  }
private static @Nullable ProjectFrameHelper getFrame()