int () { int visibilityModifier; if (hasModifierProperty(PsiModifier.PUBLIC)) { visibilityModifier = 3; } else if (hasModifierProperty(PsiModifier.PROTECTED)) { visibilityModifier = 2; } else if (hasModifierProperty(PsiModifier.PRIVATE)) { visibilityModifier = 1; } else { visibilityModifier = 0; } return visibilityModifier; }