return result;
}
private IErlRecordDef checkRecord(final OtpErlangObject o) {
if (o instanceof OtpErlangTuple) {
final OtpErlangTuple t = (OtpErlangTuple) o;
final OtpErlangObject h = t.elementAt(0);
if (h instanceof OtpErlangAtom) {
final OtpErlangAtom a = (OtpErlangAtom) h;
final ErlangDebugTarget target = getErlangDebugTarget();
IErlPreprocessorDef pd;
try {
pd = ErlangEngine
.getInstance()
.getModelFindService()
.findPreprocessorDef(getErlProjects(target.getProjects()),
moduleName, a.atomValue(), ErlElementKind.RECORD_DEF);
if (pd instanceof IErlRecordDef) {
final IErlRecordDef r = (IErlRecordDef) pd;
if (r.hasChildren() && r.getChildCount() + 1 == t.arity()) {
return r;
}
}
} catch (final CoreException e) {
}