void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); if (!(psiElement instanceof PsiFile)) { return; } final String lineSeparator = FileDocumentManager.getInstance().getLineSeparator(null, project); final VirtualFile virtualFile = ((PsiFile)psiElement).getVirtualFile(); if (virtualFile != null) { AbstractConvertLineSeparatorsAction.changeLineSeparators(project, virtualFile, lineSeparator); } }