void (@NotNull ActionContext context, @NotNull PsiMethodCallExpression call, @NotNull ModPsiUpdater updater) { final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(context.project()); final PsiExpression toReplace = elementFactory.createExpressionFromText(getCollectionsMethodCall(call), call); JavaCodeStyleManager.getInstance(context.project()).shortenClassReferences(call.replace(toReplace)); }