void (PsiElement result) { JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(result.getProject()); result = SimplifyStreamApiCallChainsInspection.simplifyStreamExpressions(result, false); LambdaCanBeMethodReferenceInspection.replaceAllLambdasWithMethodReferences(result); result = codeStyleManager.shortenClassReferences(result); RemoveRedundantTypeArgumentsUtil.removeRedundantTypeArguments(result); }