PrepopulatedCollectionModel (PsiMethodCallExpression call, String typeName, CallMatcher collector) { if (STREAM_COLLECT.test(call) && collector.matches(call.getArgumentList().getExpressions()[0])) { PsiMethodCallExpression qualifier = MethodCallUtils.getQualifierMethodCall(call); if (STREAM_OF.matches(qualifier)) { return new PrepopulatedCollectionModel(Arrays.asList(qualifier.getArgumentList().getExpressions()), Collections.emptyList(), typeName); } } return null; }