boolean (@NotNull String name) { if (GrTraitUtil.isTrait(getContainingClass())) { if (PsiModifier.ABSTRACT.equals(name)) return true; if (PsiModifier.FINAL.equals(name)) return false; } return super.hasModifierProperty(name); }