public @Nullable ElementPattern<PsiElement> compilePattern() {
    return PatternCompilerFactory.getFactory().<PsiElement>getPatternCompiler(type).compileElementPattern(text);
  }
public @Nullable ElementPattern<PsiElement> compilePattern()