Error in SonarLint for IntelliJ again

Environment:

  • Java: JetBrains s.r.o. 17.0.5
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2022.3.2
  • SonarLint: 7.4.0.60471

Error determining tab size

java.lang.IllegalStateException: @NotNull method com/intellij/psi/impl/source/codeStyle/CodeStyleSchemeImpl.getCodeStyleSettings must not return null
	at c.ij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.$$$reportNull$$$0(CodeStyleSchemeImpl.java)
	at c.ij.psi.impl.source.codeStyle.CodeStyleSchemeImpl.getCodeStyleSettings(CodeStyleSchemeImpl.java:81)
	at c.ij.psi.codeStyle.CodeStyleSettingsManager.getCurrentSettings(CodeStyleSettingsManager.java:218)
	at c.ij.application.options.CodeStyle.getSettings(CodeStyle.java:57)
	at c.ij.oa.editor.impl.SettingsImpl.getTabSize(SettingsImpl.java:390)
	at c.ij.oa.editor.ex.util.EditorUtil.getTabSize(EditorUtil.java:333)
	at c.ij.oa.editor.impl.view.EditorView.getTabSize(EditorView.java:575)
	at c.ij.oa.editor.impl.view.LogicalPositionCache.reset(LogicalPositionCache.java:75)
	at c.ij.oa.editor.impl.view.EditorView.reinitSettings(EditorView.java:361)
	at c.ij.oa.editor.impl.EditorImpl.<init>(EditorImpl.java:497)
	at c.ij.oa.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:202)
	at c.ij.oa.editor.impl.EditorFactoryImpl.createViewer(EditorFactoryImpl.java:172)
	at c.ij.execution.impl.ConsoleViewUtil.setupConsoleEditor(ConsoleViewUtil.java:50)
	at c.ij.execution.impl.ConsoleViewImpl.doCreateConsoleEditor(ConsoleViewImpl.java:882)
	at c.ij.execution.impl.ConsoleViewImpl.createConsoleEditor(ConsoleViewImpl.java:863)
	at c.ij.execution.impl.ConsoleViewImpl.initConsoleEditor(ConsoleViewImpl.java:472)

Hey there.

Take a look at this thread: