String () { if (!PlatformUtils.isCommercialEdition()) { if (PlatformUtils.isCommunityEdition()) { return isEAP() ? DEFAULT_DOC_EAP_NAME : EULA_COMMUNITY_DOCUMENT_NAME; } if (PlatformUtils.isJetBrainsClient()) { return CWM_GUEST_EULA_NAME; } if (PlatformUtils.isGateway()) { return isEAP()? DEFAULT_DOC_EAP_NAME : DEFAULT_DOC_NAME; } return isEAP()? PRIVACY_POLICY_EAP_DOCUMENT_NAME : PRIVACY_POLICY_DOCUMENT_NAME; } try { String docName = Files.readString(getDocumentNameFile()); if (docName != null && !docName.isBlank()) { return docName; } } catch (IOException ignored) { } return isEAP()? DEFAULT_DOC_EAP_NAME : DEFAULT_DOC_NAME; }