List<KtParameter> (@NotNull KtNamedDeclaration propertyOrFunction) { if (propertyOrFunction instanceof KtCallableDeclaration) { return ((KtCallableDeclaration) propertyOrFunction).getValueParameters(); } throw new IllegalArgumentException("Not a callable declaration: " + propertyOrFunction.getClass().getName()); }