public String getPackageName() {
PsiJavaFileStub stub = (PsiJavaFileStub)getStub();
if (stub != null) {
return stub.getPackageName();
}
<BUG>PsiPackageStatement statement = getPackageStatement();
if (statement == null) {
return "";
}
else {
return statement.getPackageName();
}</BUG>
}

public String getPackageName() {
PsiJavaFileStub stub = (PsiJavaFileStub)getStub();
if (stub != null) {
return stub.getPackageName();
}
PsiPackageStatement statement = getPackageStatement();
return statement == null ? "" : statement.getPackageName();
}
