@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiNewExpression expression) {
    if (!isJavaAwtColor(expression.getClassOrAnonymousClassReference()) || !isValueArguments(expression.getArgumentList())) return null;

    final PsiExpressionList arguments = expression.getArgumentList();
    if (arguments == null) return null;

    final PsiMethod constructor = expression.resolveConstructor();
    if (constructor == null) return null;

    final PsiExpressionList newArguments;
    try {
      newArguments = createNewArguments(JavaPsiFacade.getElementFactory(context.project()), 
                                        constructor.getParameterList().getParameters(), arguments.getExpressions());
    }
    catch (ConstantEvaluationOverflowException e) {
      return null;
    }

    if (newArguments == null) return null;

    return Presentation.of(JavaBundle.message("intention.convert.color.representation.text", newArguments.getText()))
      .withPriority(PriorityAction.Priority.HIGH);
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiNewExpression expression)