protected static ErlangSearchPattern _getSearchPatternFromOpenResultAndLimitTo(final FieldOpenResult res, final IErlModule module, final int offset, final LimitTo limitTo, final boolean matchAnyFunctionDefinition) throws ErlModelException {
String _name = res.getName();
final String unquoted = StringUtils.unquote(_name);
String _record = res.getRecord();
return new RecordFieldPattern(_record, unquoted, limitTo);
}