CompiledPattern (String criteria, boolean checkForErrors) { options.fillSearchCriteria(criteria); options.setFileType(JavaFileType.INSTANCE); return PatternCompiler.compilePattern(getProject(), options, checkForErrors, false); }