@NotNull @Override public String getText() { return JetBundle.message( "add.star.projections", TypeReconstructionUtil.getTypeNameAndStarProjectionsString("", argumentCount)); }
@NotNull @Override public String getText() { String stars = TypeReconstructionUtil.getTypeNameAndStarProjectionsString( "", getElement().getTypeArgumentsAsTypes().size()); return KotlinBundle.message("change.to.star.projection", stars); }
@Override public void invoke(@NotNull Project project, Editor editor, JetFile file) throws IncorrectOperationException { assert element.getTypeArguments().isEmpty(); String typeString = TypeReconstructionUtil.getTypeNameAndStarProjectionsString( element.getText(), argumentCount); JetTypeElement replacement = JetPsiFactory(file).createType(typeString).getTypeElement(); assert replacement != null : "No type element after parsing " + typeString; element.replace(replacement); }