GrReferenceListStub (@NotNull T psi, StubElement<?> parentStub) { List<String> refNames = new ArrayList<>(); for (GrCodeReferenceElement element : psi.getReferenceElementsGroovy()) { final String name = GrStubUtils.getReferenceName(element); if (StringUtil.isNotEmpty(name)) { refNames.add(name); } } return new GrReferenceListStub(parentStub, this, ArrayUtilRt.toStringArray(refNames)); }