void (@NotNull final RefEntity refEntity, @NotNull final Element element) { String packageName = RefJavaUtil.getInstance().getPackageName(refEntity); if (packageName != null) { final Element packageElement = new Element("package"); packageElement.addContent(packageName.isEmpty() ? JavaAnalysisBundle.message("inspection.reference.default.package") : packageName); element.addContent(packageElement); } }