String (PsiElement resolved, @Nullable String def) { if (resolved instanceof PsiEnumConstant enumConstant) { final PsiClass enumClass = enumConstant.getContainingClass(); if (enumClass != null) { return enumClass.getName() + "." + enumConstant.getName(); } } return def; }