public static PsiElement @NotNull [] createTreeFromText(@NotNull String text,
                                                          @NotNull PatternContextInfo contextInfo,
                                                          @NotNull LanguageFileType fileType,
                                                          @NotNull Language language,
                                                          @NotNull Project project,
                                                          boolean physical) {
    final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByLanguage(language);
    if (profile != null) {
      return profile.createPatternTree(text, contextInfo, fileType, language, project, physical);
    }
    return PsiElement.EMPTY_ARRAY;
  }
public static PsiElement @NotNull [] createTreeFromText(@NotNull String text,
                                                          @NotNull PatternContextInfo contextInfo,
                                                          @NotNull LanguageFileType fileType,
                                                          @NotNull Language language,
                                                          @NotNull Project project,
                                                          boolean physical)