Charset (@NotNull VirtualFile virtualFile) { Charset specifiedExplicitly = EncodingRegistry.getInstance().getEncoding(virtualFile, true); return ObjectUtils.notNull(specifiedExplicitly, EncodingRegistry.getInstance().getDefaultCharset()); }