For some reason, EditorFactory has no method with control parameter for \r validity and we need to cast EditorFactory to EditorFactoryImpl.
We can do it safely, for example:
Contact Qodana team
Contact us at [qodana-support@jetbrains.com](mailto:qodana-support@jetbrains.com)
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
For some reason, EditorFactory has no method with control parameter for \r validity and we need to cast EditorFactory to EditorFactoryImpl. We can do it safely, for example:
But it's a pretty old API and JetBrains is just using cast everywhere, so I did the same