void (@NotNull PsiElement element, @NotNull ActionContext context, @NotNull ModPsiUpdater updater) { if (element instanceof GrReturnStatement returnStatement && returnStatement.getReturnValue() != null) { GrExpression value = returnStatement.getReturnValue(); returnStatement.replaceWithStatement(value); } }