private static @Nullable String createReturnValueTemplate(UExpression expression, @NotNull Predicate<PsiField> predicate) {
    if (expression instanceof ULiteralExpression literalExpression) {
      return String.valueOf(literalExpression.getValue());
    }
    else if (expression instanceof UInjectionHost injectionHost) {
      return injectionHost.evaluateToString();
    }
    else if (expression instanceof UResolvable resolvable) {
      UElement resolved = UResolvableKt.resolveToUElement(resolvable);
      if (resolved instanceof UField uField && uField.isStatic() && uField.isFinal()) {
        PsiField psi = (PsiField)uField.getJavaPsi();
        if (psi != null && predicate.test(psi)) {
          return PsiFormatUtil.formatVariable(psi, PsiFormatUtilBase.SHOW_NAME |
                                                   PsiFormatUtilBase.SHOW_CONTAINING_CLASS |
                                                   PsiFormatUtilBase.SHOW_FQ_NAME, PsiSubstitutor.EMPTY);
        }
      }
    }
    return null;
  }
private static @Nullable String createReturnValueTemplate(UExpression expression, @NotNull Predicate<PsiField> predicate)