@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiExpression expr) {
    if (!myType.isValid() ||
        PsiTypes.voidType().equals(myType) ||
        !PsiTypesUtil.isDenotableType(myType, expr) ||
        !PsiTypesUtil.allTypeParametersResolved(expr, myType)) return null;
    return Presentation.of(myName).withPriority(PriorityAction.Priority.HIGH).withFixAllOption(this);
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiExpression expr)