PsiExpression (PsiExpression expression, @NotNull TypeEvaluator evaluator) { PsiMethodCallExpression methodCall = (PsiMethodCallExpression)expression; final PsiExpression[] arguments = methodCall.getArgumentList().getExpressions(); setReplaceByString("$it$.skip($p$).findFirst().get()"); if (arguments.length == 1 && arguments[0] instanceof PsiLiteralExpression) { final Object value = ((PsiLiteralExpression)arguments[0]).getValue(); if (value != null && value.equals(0)) { setReplaceByString("$it$.findFirst().get()"); } } return super.replace(expression, evaluator); }