private static boolean isStatic(PsiElement member) {
    return member instanceof PsiModifierListOwner method && method.hasModifierProperty(PsiModifier.STATIC);
  }
private static boolean isStatic(PsiElement member)