@Override
  public @NotNull PsiElement @NotNull [] createPatternTree(@NotNull String text,
                                                           @NotNull PatternContextInfo contextInfo,
                                                           @NotNull LanguageFileType fileType,
                                                           @NotNull Language language,
                                                           @NotNull Project project,
                                                           boolean physical) {
    final PsiFile file = PsiFileFactory.getInstance(project).createFileFromText("__dummy.properties", language, text, physical, true);
    final PsiElement child = file.getFirstChild();
    if (child == null) return PsiElement.EMPTY_ARRAY;
    SmartList<PsiElement> result = new SmartList<>();
    PsiElement patternElement = child.getFirstChild();
    while (patternElement != null) {
      if (patternElement instanceof Property || patternElement instanceof PsiComment) {
        result.add(patternElement);
      }
      patternElement = patternElement.getNextSibling();
    }

    return result.toArray(PsiElement.EMPTY_ARRAY);
  }
@Override
  public @NotNull PsiElement @NotNull [] createPatternTree(@NotNull String text,
                                                           @NotNull PatternContextInfo contextInfo,
                                                           @NotNull LanguageFileType fileType,
                                                           @NotNull Language language,
                                                           @NotNull Project project,
                                                           boolean physical)