boolean (PsiMethod enclosingContext) { PsiMethod[] superMethods = enclosingContext.findDeepestSuperMethods(); return superMethods.length == 0 || ContainerUtil.exists(superMethods, method -> !method.isWritable()); }