Optional<String> (@NotNull PsiModifierListOwner psiModifierListOwner) { final PsiModifierList modifierList = psiModifierListOwner.getModifierList(); if (null != modifierList) { final int accessLevelCode = PsiUtil.getAccessLevel(modifierList); final String accessLevel = ACCESS_LEVEL_MAP.get(accessLevelCode); if (null != accessLevel && !ACCESS_LEVEL_PUBLIC.equals(accessLevel)) { return Optional.of(LombokClassNames.ACCESS_LEVEL + "." + accessLevel); } } return Optional.empty(); }