List<MatchResult> (String in, String pattern, LanguageFileType patternFileType, Language patternLanguage, LanguageFileType sourceFileType, boolean physicalSourceFile) { options.fillSearchCriteria(pattern); options.setFileType(patternFileType); options.setDialect(patternLanguage); final CompiledPattern compiledPattern = PatternCompiler.compilePattern(getProject(), options, true, false); final String message = checkApplicableConstraints(options, compiledPattern); assertNull(message, message); final Matcher matcher = new Matcher(getProject(), options, compiledPattern); return matcher.testFindMatches(in, true, sourceFileType, physicalSourceFile); }