@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiTypeElement startElement, @NotNull ModPsiUpdater updater) {
    if (startElement.getParent() instanceof PsiParameter psiParameter &&
        psiParameter.getDeclarationScope() instanceof PsiLambdaExpression lambda) {
      for (PsiParameter parameter : lambda.getParameterList().getParameters()) {
        PsiTypeElement typeElement = parameter.getTypeElement();
        if (typeElement != null) {
          PsiTypesUtil.replaceWithExplicitType(typeElement);
        }
      }
      return;
    }
    PsiTypesUtil.replaceWithExplicitType(startElement);
  }
@Override
  protected void invoke(@NotNull ActionContext context, @NotNull PsiTypeElement startElement, @NotNull ModPsiUpdater updater)