public static PsiElement @NotNull [] createSourceTreeFromText(@NotNull String text,
                                                                @NotNull PatternTreeContext context,
                                                                @NotNull LanguageFileType fileType,
                                                                @NotNull Project project,
                                                                boolean physical) {
    final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByLanguage(fileType.getLanguage());
    if (profile != null) {
      return profile.createPatternTree(text, context, fileType, fileType.getLanguage(), null, project, physical);
    }
    return PsiElement.EMPTY_ARRAY;
  }
public static PsiElement @NotNull [] createSourceTreeFromText(@NotNull String text,
                                                                @NotNull PatternTreeContext context,
                                                                @NotNull LanguageFileType fileType,
                                                                @NotNull Project project,
                                                                boolean physical)