public static boolean isExplicitlyAbstract(@NotNull PsiMethod method) {
    PsiModifierList modifierList = method.getModifierList();
    return modifierList.hasExplicitModifier(PsiModifier.ABSTRACT) ||
           ((method.getParent() instanceof PsiClass clazz && clazz.isInterface() &&
             !modifierList.hasExplicitModifier(PsiModifier.DEFAULT) &&
             !modifierList.hasExplicitModifier(PsiModifier.STATIC)));
  }
public static boolean isExplicitlyAbstract(@NotNull PsiMethod method)