String[] (@NotNull PsiElement position) { final PsiModifierList list = findModifierList(position); if (list == null && !shouldSuggestModifiers(position)) { return ArrayUtilRt.EMPTY_STRING_ARRAY; } PsiElement scope = position.getParent(); while (scope != null) { if (scope instanceof PsiJavaFile) { return addMemberModifiers(list, false, position); } if (scope instanceof PsiClass) { return addMemberModifiers(list, ((PsiClass)scope).isInterface(), scope); } scope = scope.getParent(); if (scope instanceof PsiDirectory) break; } return ArrayUtilRt.EMPTY_STRING_ARRAY; }