void (PsiExpression expression) { PsiMethodCallExpression callExpression = tryCast(expression, PsiMethodCallExpression.class); if (!VALUE_OF.test(callExpression)) return; PsiMethod method = callExpression.resolveMethod(); if (method == null) return; PsiClass containingClass = method.getContainingClass(); PsiExpression[] arguments = callExpression.getArgumentList().getExpressions(); if (arguments.length != 1) return; PsiExpression argument = arguments[0]; if (containingClass == null) return; String containingClassName = containingClass.getQualifiedName(); String replacementMethodCall = JavaPsiBoxingUtils.getParseMethod(callExpression.getType()); if (replacementMethodCall == null) return; CommentTracker tracker = new CommentTracker(); String argumentText = tracker.text(argument); String replacementText = containingClassName + "." + replacementMethodCall + "(" + argumentText + ")"; tracker.replaceAndRestoreComments(callExpression, replacementText); }