public static @NotNull @NlsSafe String getDisplayText(@NotNull RunConfiguration configuration, @Nullable ExecutionTarget target) {
    return configuration.getType().getDisplayName() + " '" + configuration.getName() +
           "'" + (target != null && target != DefaultExecutionTarget.INSTANCE && !target.isExternallyManaged() ?
           " | " + target.getDisplayName() : "");
  }
public static @NotNull @NlsSafe String getDisplayText(@NotNull RunConfiguration configuration, @Nullable ExecutionTarget target)