void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { Document document = PsiDocumentManager.getInstance(project).getDocument(file); if (document == null) { return; } ChangeFileEncodingAction.changeTo(project, document, null, virtualFile, goodCharset, EncodingUtil.Magic8.ABSOLUTELY, EncodingUtil.Magic8.ABSOLUTELY); }