List<String> () { PsiPackageAccessibilityStatementStub stub = getGreenStub(); if (stub != null) { return stub.getTargets(); } else { List<String> targets = new SmartList<>(); for (PsiJavaModuleReferenceElement refElement : getModuleReferences()) targets.add(refElement.getReferenceText()); return targets; } }