Charset () { Charset charset = myProjectCharset; // if the project charset was not specified, use the IDE encoding, save this back return charset == null ? myIdeEncodingManager.getDefaultCharset() : charset; }