@NotNull
  public @NlsSafe String getProjectName() {
    if (ProjectKt.isDirectoryBased(myProject)) {
      @NlsSafe final String text = myUi.getProjectName();
      return text.trim();
    }
    return myProject.getName();
  }
@NotNull
  public @NlsSafe String getProjectName()