boolean () { PsiImportStatementStub stub = getGreenStub(); if (stub != null) { return stub.isOnDemand(); } return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null; }