Compiler settings are null since CLion Nova on C files

Hello!

Before CLion Nova, I used to retrieve the compiler settings as such:

public * getConfiguration(VirtualFile file) {
    var psiFile = PsiManager.getInstance(project).findFile(file);
    if (!(psiFile instanceof CppFile cppFile)) {
      return;
    }
    var configuration = getConfiguration(project, file);
    var cLanguageKind = getLanguageKind(cppFile.getLanguage());
    var compilerSettings = configuration.getCompilerSettings(cLanguageKind, file);
    var compilerKind = compilerSettings.getCompilerKind(); // -> Returns null
    [...]
  }

However, since CLion Nova (ReSharper engine enabled), the compiler settings do not return anything on C files.

What could be the reason? Is there a workaround with a new API?

Thank you!

I finally found a workaround by using OCLanguageKindCalculatorBase.tryPsiFile(psiFile) instead of getLanguageKind(cppFile.getLanguage()), as the later was returning C++ with ReSharper engine.