private static boolean isInInterface(KtNamedDeclaration declaration) {
    return KtPsiUtilKt.getContainingClassOrObject(declaration) instanceof KtClass ktClass && ktClass.isInterface();
  }
private static boolean isInInterface(KtNamedDeclaration declaration)