boolean (KtNamedDeclaration declaration) { if (!isInInterface(declaration)) { return false; } if (declaration instanceof KtProperty ktProperty) { return !ktProperty.hasInitializer() && !ktProperty.hasDelegate() && ktProperty.getAccessors().isEmpty(); } if (declaration instanceof KtFunction ktFunction) { return !ktFunction.hasBody(); } return false; }