PsiPackageStatement () { ClsPackageStatementImpl statement = myPackageStatement; if (statement == null) { statement = ClsPackageStatementImpl.NULL_PACKAGE; PsiClassHolderFileStub<?> stub = getStub(); if (!(stub instanceof PsiJavaFileStub) || stub.findChildStubByType(JavaStubElementTypes.MODULE) == null) { String packageName = findPackageName(stub); if (packageName != null) { statement = new ClsPackageStatementImpl(this, packageName); } } myPackageStatement = statement; } return statement != ClsPackageStatementImpl.NULL_PACKAGE ? statement : null; }