PsiImportList () { StubElement<?> stub = getGreenStub(); if (stub != null) { PsiImportList[] nodes = stub.getChildrenByType(JavaStubElementTypes.IMPORT_LIST, PsiImportList.ARRAY_FACTORY); if (nodes.length == 1) return nodes[0]; assert nodes.length == 0; return null; } ASTNode node = calcTreeElement().findChildByType(JavaElementType.IMPORT_LIST); return (PsiImportList)SourceTreeToPsiMap.treeElementToPsi(node); }