String () { if (getParentClass() != null && getParentClass().isInterface()) { return PsiModifier.PUBLIC; } String initialVisibility = JavaRefactoringSettings.getInstance().INTRODUCE_CONSTANT_VISIBILITY; if (initialVisibility == null) { initialVisibility = PsiModifier.PUBLIC; } else { String effectiveVisibility = IntroduceConstantDialog.getEffectiveVisibility(initialVisibility, myOccurrences, getParentClass(), myProject); if (effectiveVisibility != null) { return effectiveVisibility; } } return initialVisibility; }