private static boolean cannotBeOverridding(@NotNull PsiMethod method) {
    PsiClass parentClass = method.getContainingClass();
    return parentClass == null
           || method.isConstructor()
           || method.hasModifierProperty(PsiModifier.STATIC)
           || method.hasModifierProperty(PsiModifier.PRIVATE);
  }
private static boolean cannotBeOverridding(@NotNull PsiMethod method)