boolean (final @NotNull PsiElement element) { if (element instanceof XmlEntityDecl xmlEntityDecl) { if (xmlEntityDecl.isInternalReference() || acceptSystemEntities) { final LookupElementBuilder _item = buildEntityLookupItem(xmlEntityDecl); if (_item != null) { resultSet.addElement(_item); resultSet.stopHere(); } } } return true; }