private static @Nullable Boolean isFixAvailable(UParameter parameter, Object value, boolean usedForWriting) {
    if (usedForWriting) return false;
    PsiParameter javaParameter = ObjectUtils.tryCast(parameter.getSourcePsi(), PsiParameter.class);
    if (javaParameter == null) return null;
    if (javaParameter.isVarArgs()) return false;
    if (value instanceof RefParameterImpl.ConstValue constValue) {
      PsiExpression expression =
        JavaPsiFacade.getElementFactory(javaParameter.getProject()).createExpressionFromText(constValue.canonicalText(), javaParameter);
      if (expression instanceof PsiReferenceExpression reference) {
        PsiElement target = reference.resolve();
        return target instanceof PsiMember member && PsiUtil.isMemberAccessibleAt(member, javaParameter);
      }
    }
    return true;
  }
private static @Nullable Boolean isFixAvailable(UParameter parameter, Object value, boolean usedForWriting)