String (PsiMethodCallExpression call, PsiType inType) { PsiType outType = StreamApiUtil.getStreamElementType(call.getType(), false); String methodName = Objects.requireNonNull(call.getMethodExpression().getReferenceName()); if (methodName.startsWith("flatMap")) { return Objects.requireNonNull(StreamRefactoringUtil.getFlatMapOperationName(inType, outType)); } if (methodName.startsWith("map")) { return StreamRefactoringUtil.getMapOperationName(inType, outType); } return methodName; }