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