}
protected boolean _isTypeDefOrRecordDef(final ExternalCallOpenResult res, final IErlElement element) {
boolean _tripleNotEquals = (element != null);
if (_tripleNotEquals) {
ErlElementKind _kind = element.getKind();
boolean _equals = Objects.equal(_kind, ErlElementKind.RECORD_DEF);
if (_equals) {
return true;
}
ErlElementKind _kind_1 = element.getKind();
boolean _equals_1 = Objects.equal(_kind_1, ErlElementKind.TYPESPEC);
if (_equals_1) {
String _fun = res.getFun();
String _name = element.getName();
boolean _equals_2 = _fun.equals(_name);