private static @Nullable ParserDefinition getParserDefinition(@NotNull FileType fileType, @NotNull Supplier<String> logText) {
      ParserDefinition parserDefinition = null;
      if (fileType instanceof LanguageFileType) {
        Language l = ((LanguageFileType)fileType).getLanguage();
        parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
        if (parserDefinition == null) {
          logIfStubTraceEnabled(() -> "No parser definition for " + logText.get());
        }
      }
      return parserDefinition;
    }
private static @Nullable ParserDefinition getParserDefinition(@NotNull FileType fileType, @NotNull Supplier<String> logText)