int (String modifier) { return switch (modifier) { case PsiModifier.PRIVATE -> 0; case PsiModifier.PACKAGE_LOCAL -> 1; case PsiModifier.PROTECTED -> 2; case PsiModifier.PUBLIC -> 3; default -> -1; }; }